Simple Question (Direct)
Simple Question
Q2348402
P1532
Q15617994
USER
Which administrative territory does Hugo Ayala represent ?
(Q2348402,P1532,c(Q15617994))
action filter_type
action find
entity Q2348402
relation P1532
type Q15617994
['Q2348402', 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q2348402 property:P1532 ?x }
Hugo Ayala
action filter_type
action find
entity Hugo Ayala
relation country for sport
type designation for an administrative territorial entity
['Hugo Ayala', 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Hugo_Ayala property:country_for_sport ?x }
[]
designation for an administrative territorial entity
Q96
SYSTEM
Mexico
Q96
(Q2348402,P1532,c(Q15617994))
action filter_type
action find
entity Q2348402
relation P1532
type Q15617994
Hugo Ayala represents in [ANSWER]
['Q2348402', 'P1532', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q2348402 property:P1532 ?x }
Mexico
Hugo Ayala represents in Mexico
Mexico
action filter_type
action find
entity Hugo Ayala
relation country for sport
type designation for an administrative territorial entity
['Hugo Ayala', 'country for sport', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Hugo_Ayala property:country_for_sport ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q96
P1071
Q15709879
USER
Which artwork series has that administrative territory as its final assembly location ?
(c(Q15709879),P1071,Q96)
action filter_type
action find_reverse
entity Q96
relation P1071
type Q15709879
[{'concept': 'Q15709879'}, 'P1071', 'Q96']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15709879 . ?g property:P1071 resource:Q96 }
Mexico
action filter_type
action find_reverse
entity Mexico
relation location of final assembly
type artwork series
[{'concept': 'artwork series'}, 'location of final assembly', 'Mexico']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:artwork_series . ?g property:location_of_final_assembly resource:Mexico }
[]
artwork series
Q2829428
SYSTEM
Al Alimón
Q2829428
(c(Q15709879),P1071,Q96)
action filter_type
action find_reverse
entity Q96
relation P1071
type Q15709879
[ANSWER] has that administrative territory as its final assembly location
[{'concept': 'Q15709879'}, 'P1071', 'Q96']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15709879 . ?g property:P1071 resource:Q96 }
Al Alimón
Al Alimón has that administrative territory as its final assembly location
Al Alimón
action filter_type
action find_reverse
entity Mexico
relation location of final assembly
type artwork series
[{'concept': 'artwork series'}, 'location of final assembly', 'Mexico']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:artwork_series . ?g property:location_of_final_assembly resource:Mexico }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q96
P463
Q43229
USER
How many organizations were Mexico a member of ?
(Q96,P463,c(Q43229))
action count
action filter_type
action find
entity Q96
relation P463
type Q43229
['Q96', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Q96 property:P463 ?q . ?q rdf:type ontology:Q43229 }
Mexico
action count
action filter_type
action find
entity Mexico
relation member of
type organization
['Mexico', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Mexico property:member_of ?q . ?q rdf:type ontology:organization }
[]
organization
SYSTEM
17
Q125761 Q191384 Q1153087 Q309195 Q41550 Q123759 Q689859 Q1045401 Q7825 Q170481 Q1071706 Q656801 Q40970 Q3772571 Q82151 Q7178 Q827525
(Q96,P463,c(Q43229))
action count
action filter_type
action find
entity Q96
relation P463
type Q43229
[ANSWER]
['Q96', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Q96 property:P463 ?q . ?q rdf:type ontology:Q43229 }
International Civil Aviation Organization International Bank for Reconstruction and Development Inter-American Development Bank Bank for International Settlements Organisation for Economic Co-operation and Development Organization of American States International Fund for Agricultural Development Community of Latin American and Caribbean States World Trade Organization Asia-Pacific Economic Cooperation International Trade Union Confederation International Finance Corporation International Olympic Committee Caribbean Development Bank Food and Agriculture Organization of the United Nations International Red Cross and Red Crescent Movementsac International Development Association
17
action count
action filter_type
action find
entity Mexico
relation member of
type organization
['Mexico', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Mexico property:member_of ?q . ?q rdf:type ontology:organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q3131514
P463
Q43229
USER
And how about Henri Heudre?
(Q3131514,P463,c(Q43229))
action count
action filter_type
action find
entity Q3131514
relation P463
type Q43229
['Q3131514', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { resource:Q3131514 property:P463 ?t . ?t rdf:type ontology:Q43229 }
Henri Heudre
action count
action filter_type
action find
entity Henri Heudre
relation member of
type organization
['Henri Heudre', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { resource:Henri_Heudre property:member_of ?t . ?t rdf:type ontology:organization }
[]
organization
SYSTEM
1
Q849726
(Q3131514,P463,c(Q43229))
action count
action filter_type
action find
entity Q3131514
relation P463
type Q43229
[ANSWER]
['Q3131514', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { resource:Q3131514 property:P463 ?t . ?t rdf:type ontology:Q43229 }
Congregation of the Mission
1
action count
action filter_type
action find
entity Henri Heudre
relation member of
type organization
['Henri Heudre', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { resource:Henri_Heudre property:member_of ?t . ?t rdf:type ontology:organization }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q5163832
Q43229
USER
And what about Constantine Makris?
(Q5163832,P463,c(Q43229))
action count
action filter_type
action find
entity Q5163832
relation P463
type Q43229
['Q5163832', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { resource:Q5163832 property:P463 ?c . ?c rdf:type ontology:Q43229 }
Constantine Makris
action count
action filter_type
action find
entity Constantine Makris
relation member of
type organization
['Constantine Makris', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { resource:Constantine_Makris property:member_of ?c . ?c rdf:type ontology:organization }
[]
organization
SYSTEM
1
(Q5163832,P463,c(Q43229))
action count
action filter_type
action find
entity Q5163832
relation P463
type Q43229
[ANSWER]
['Q5163832', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { resource:Q5163832 property:P463 ?c . ?c rdf:type ontology:Q43229 }
1
action count
action filter_type
action find
entity Constantine Makris
relation member of
type organization
['Constantine Makris', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?n ) WHERE { resource:Constantine_Makris property:member_of ?c . ?c rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q96
P194
Q1752346
USER
Which assembly governs Mexico ?
(Q96,P194,c(Q1752346))
action filter_type
action find
entity Q96
relation P194
type Q1752346
['Q96', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1752346 . resource:Q96 property:P194 ?n }
Mexico
action filter_type
action find
entity Mexico
relation legislative body
type assembly
['Mexico', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:assembly . resource:Mexico property:legislative_body ?n }
[]
assembly
Q1484825
SYSTEM
Congress of the Union
Q1484825
(Q96,P194,c(Q1752346))
action filter_type
action find
entity Q96
relation P194
type Q1752346
[ANSWER] governs Mexico
['Q96', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1752346 . resource:Q96 property:P194 ?n }
Congress of the Union
Congress of the Union governs Mexico
Congress of the Union
action filter_type
action find
entity Mexico
relation legislative body
type assembly
['Mexico', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:assembly . resource:Mexico property:legislative_body ?n }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q774783
Q1752346
USER
And how about Sovereign Principality of the United Netherlands?
(Q774783,P194,c(Q1752346))
action filter_type
action find
entity Q774783
relation P194
type Q1752346
['Q774783', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?c WHERE { resource:Q774783 property:P194 ?c . ?c rdf:type ontology:Q1752346 }
Sovereign Principality of the United Netherlands
action filter_type
action find
entity Sovereign Principality of the United Netherlands
relation legislative body
type assembly
['Sovereign Principality of the United Netherlands', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?c WHERE { resource:Sovereign_Principality_of_the_United_Netherlands property:legislative_body ?c . ?c rdf:type ontology:assembly }
[]
assembly
Q1371388
SYSTEM
States General
Q1371388
(Q774783,P194,c(Q1752346))
action filter_type
action find
entity Q774783
relation P194
type Q1752346
[ANSWER]
['Q774783', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?c WHERE { resource:Q774783 property:P194 ?c . ?c rdf:type ontology:Q1752346 }
States General
States General
action filter_type
action find
entity Sovereign Principality of the United Netherlands
relation legislative body
type assembly
['Sovereign Principality of the United Netherlands', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?c WHERE { resource:Sovereign_Principality_of_the_United_Netherlands property:legislative_body ?c . ?c rdf:type ontology:assembly }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1371388 Q55
P17
Q15617994
USER
Is States General present in Netherlands ?
(Q1371388,P17,Q55)
action is_in
entity Q55
action find
entity Q1371388
relation P17
['Q1371388', 'P17', 'Q55']
ASK WHERE { resource:Q1371388 property:P17 resource:Q55 }
States General Netherlands
action is_in
entity Netherlands
action find
entity States General
relation country
['States General', 'country', 'Netherlands']
ASK WHERE { resource:States_General property:country resource:Netherlands }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q1371388,P17,Q55)
action is_in
entity Q55
action find
entity Q1371388
relation P17
[ANSWER]
['Q1371388', 'P17', 'Q55']
ASK WHERE { resource:Q1371388 property:P17 resource:Q55 }
Yes
action is_in
entity Netherlands
action find
entity States General
relation country
['States General', 'country', 'Netherlands']
ASK WHERE { resource:States_General property:country resource:Netherlands }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2348402 Q565977 Q96
P27
Q15617994
USER
Is Hugo Ayala a native of Rauda and Mexico ?
(Q2348402,P27,Q565977) (Q2348402,P27,Q96)
action is_in
entity Q2348402
action intersection
action find_reverse
entity Q565977
relation P27
action find_reverse
entity Q96
relation P27
['Q2348402', 'P27', 'Q565977'] ['Q2348402', 'P27', 'Q96']
ASK WHERE { resource:Q2348402 property:P27 resource:Q565977 . resource:Q2348402 property:P27 resource:Q96 }
Hugo Ayala Rauda Mexico
action is_in
entity Hugo Ayala
action intersection
action find_reverse
entity Rauda
relation country of citizenship
action find_reverse
entity Mexico
relation country of citizenship
['Hugo Ayala', 'country of citizenship', 'Rauda'] ['Hugo Ayala', 'country of citizenship', 'Mexico']
ASK WHERE { resource:Hugo_Ayala property:country_of_citizenship resource:Rauda . resource:Hugo_Ayala property:country_of_citizenship resource:Mexico }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q2348402,P27,Q565977) (Q2348402,P27,Q96)
action is_in
entity Q2348402
action intersection
action find_reverse
entity Q565977
relation P27
action find_reverse
entity Q96
relation P27
[ANSWER]
['Q2348402', 'P27', 'Q565977'] ['Q2348402', 'P27', 'Q96']
ASK WHERE { resource:Q2348402 property:P27 resource:Q565977 . resource:Q2348402 property:P27 resource:Q96 }
NO and YES respectively
action is_in
entity Hugo Ayala
action intersection
action find_reverse
entity Rauda
relation country of citizenship
action find_reverse
entity Mexico
relation country of citizenship
['Hugo Ayala', 'country of citizenship', 'Rauda'] ['Hugo Ayala', 'country of citizenship', 'Mexico']
ASK WHERE { resource:Hugo_Ayala property:country_of_citizenship resource:Rauda . resource:Hugo_Ayala property:country_of_citizenship resource:Mexico }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q101312 Q96
P47
Q15617994
USER
Which administrative territories are adjacent to Mexico or Ornica ?
OR((Q96,P47,c(Q15617994)), (Q101312,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q96
relation P47
action find
entity Q101312
relation P47
type Q15617994
{'OR': [['Q96', 'P47', {'concept': 'Q15617994'}], ['Q101312', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { ?z property:P47 ?k . VALUES ( ?z ) { ( resource:Q96 ) ( resource:Q101312 ) } } . ?k rdf:type ontology:Q15617994 }
Ornica Mexico
action filter_type
action union
action find
entity Mexico
relation shares border with
action find
entity Ornica
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Mexico', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Ornica', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { ?z property:shares_border_with ?k . VALUES ( ?z ) { ( resource:Mexico ) ( resource:Ornica ) } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q774 Q40127 Q101718 Q100666 Q242 Q30 Q100162
SYSTEM
Guatemala, Gerola Alta, Valtorta, Lombardy, Cusio, Lombardy, Belize, United States of America, Cassiglio
Q774 Q40127 Q101718 Q100666 Q242 Q30 Q100162
OR((Q96,P47,c(Q15617994)), (Q101312,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q96
relation P47
action find
entity Q101312
relation P47
type Q15617994
[ANSWERS] are adjacent to Mexico or Ornica
{'OR': [['Q96', 'P47', {'concept': 'Q15617994'}], ['Q101312', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { ?z property:P47 ?k . VALUES ( ?z ) { ( resource:Q96 ) ( resource:Q101312 ) } } . ?k rdf:type ontology:Q15617994 }
Guatemala Gerola Alta Valtorta, Lombardy Cusio, Lombardy Belize United States of America Cassiglio
Guatemala, Gerola Alta, Valtorta, Lombardy, Cusio, Lombardy, Belize, United States of America and Cassiglio are adjacent to Mexico or Ornica
Guatemala Gerola Alta Valtorta, Lombardy Cusio, Lombardy Belize United States of America Cassiglio
action filter_type
action union
action find
entity Mexico
relation shares border with
action find
entity Ornica
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Mexico', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Ornica', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { ?z property:shares_border_with ?k . VALUES ( ?z ) { ( resource:Mexico ) ( resource:Ornica ) } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6655 Q101718
P47 P421
Q15617994
USER
Which administrative territories are next to the border of Valtorta, Lombardy and are UTC+01:00 a time zone for ?
AND((c(Q15617994),P47,Q101718), (c(Q15617994),P421,Q6655))
action filter_type
action intersection
action find_reverse
entity Q101718
relation P47
action find_reverse
entity Q6655
relation P421
type Q15617994
{'AND': [[{'concept': 'Q15617994'}, 'P47', 'Q101718'], [{'concept': 'Q15617994'}, 'P421', 'Q6655']]}
SELECT DISTINCT ?j WHERE { ?j property:P421 resource:Q6655 . ?j property:P47 resource:Q101718 . ?j rdf:type ontology:Q15617994 }
UTC+01:00 Valtorta, Lombardy
action filter_type
action intersection
action find_reverse
entity Valtorta, Lombardy
relation shares border with
action find_reverse
entity UTC+01:00
relation located in time zone
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Valtorta, Lombardy'], [{'concept': 'designation for an administrative territorial entity'}, 'located in time zone', 'UTC+01:00']]}
SELECT DISTINCT ?j WHERE { ?j property:located_in_time_zone resource:UTC+01:00 . ?j property:shares_border_with resource:Valtorta,_Lombardy . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q42856 Q40127 Q42725 Q101312 Q100162 Q101721
SYSTEM
Introbio, Gerola Alta, Barzio, Ornica, Cassiglio, Vedeseta
Q42856 Q40127 Q42725 Q101312 Q100162 Q101721
AND((c(Q15617994),P47,Q101718), (c(Q15617994),P421,Q6655))
action filter_type
action intersection
action find_reverse
entity Q101718
relation P47
action find_reverse
entity Q6655
relation P421
type Q15617994
[ANSWERS] are next to the border of Valtorta, Lombardy and are UTC+01:00 a time zone for
{'AND': [[{'concept': 'Q15617994'}, 'P47', 'Q101718'], [{'concept': 'Q15617994'}, 'P421', 'Q6655']]}
SELECT DISTINCT ?j WHERE { ?j property:P421 resource:Q6655 . ?j property:P47 resource:Q101718 . ?j rdf:type ontology:Q15617994 }
Introbio Gerola Alta Barzio Ornica Cassiglio Vedeseta
Introbio, Gerola Alta, Barzio, Ornica, Cassiglio and Vedeseta are next to the border of Valtorta, Lombardy and are UTC+01:00 a time zone for
Introbio Gerola Alta Barzio Ornica Cassiglio Vedeseta
action filter_type
action intersection
action find_reverse
entity Valtorta, Lombardy
relation shares border with
action find_reverse
entity UTC+01:00
relation located in time zone
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Valtorta, Lombardy'], [{'concept': 'designation for an administrative territorial entity'}, 'located in time zone', 'UTC+01:00']]}
SELECT DISTINCT ?j WHERE { ?j property:located_in_time_zone resource:UTC+01:00 . ?j property:shares_border_with resource:Valtorta,_Lombardy . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P47
Q15617994 Q56061
USER
How many administrative territories or administrative territories share the border with that administrative territory ?
(Q101721,P47,c(Q15617994)) (Q101721,P47,c(Q56061)) (Q42856,P47,c(Q15617994)) (Q42856,P47,c(Q56061)) (Q40127,P47,c(Q15617994)) (Q40127,P47,c(Q56061)) (Q42725,P47,c(Q15617994)) (Q42725,P47,c(Q56061)) (Q101312,P47,c(Q15617994)) (Q101312,P47,c(Q56061)) (Q100162,P47,c(Q15617994)) (Q100162,P47,c(Q56061)) (Q101721,P47,c(Q15617994)) (Q101721,P47,c(Q56061))
['Q101721', 'P47', {'concept': 'Q15617994'}] ['Q101721', 'P47', {'concept': 'Q56061'}] ['Q42856', 'P47', {'concept': 'Q15617994'}] ['Q42856', 'P47', {'concept': 'Q56061'}] ['Q40127', 'P47', {'concept': 'Q15617994'}] ['Q40127', 'P47', {'concept': 'Q56061'}] ['Q42725', 'P47', {'concept': 'Q15617994'}] ['Q42725', 'P47', {'concept': 'Q56061'}] ['Q101312', 'P47', {'concept': 'Q15617994'}] ['Q101312', 'P47', {'concept': 'Q56061'}] ['Q100162', 'P47', {'concept': 'Q15617994'}] ['Q100162', 'P47', {'concept': 'Q56061'}] ['Q101721', 'P47', {'concept': 'Q15617994'}] ['Q101721', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Q101721 property:P47 ?z } UNION { resource:Q101721 property:P47 ?y } UNION { resource:Q42856 property:P47 ?z } UNION { resource:Q42856 property:P47 ?y } UNION { resource:Q40127 property:P47 ?z } UNION { resource:Q40127 property:P47 ?y } UNION { resource:Q42725 property:P47 ?z } UNION { resource:Q42725 property:P47 ?y } UNION { resource:Q101312 property:P47 ?z } UNION { resource:Q101312 property:P47 ?y } UNION { resource:Q100162 property:P47 ?z } UNION { resource:Q100162 property:P47 ?y } UNION { resource:Q101721 property:P47 ?z } UNION { resource:Q101721 property:P47 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q56061 }
['Vedeseta', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Vedeseta', 'shares border with', {'concept': 'administrative territorial entity'}] ['Introbio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Introbio', 'shares border with', {'concept': 'administrative territorial entity'}] ['Gerola Alta', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Gerola Alta', 'shares border with', {'concept': 'administrative territorial entity'}] ['Barzio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Barzio', 'shares border with', {'concept': 'administrative territorial entity'}] ['Ornica', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Ornica', 'shares border with', {'concept': 'administrative territorial entity'}] ['Cassiglio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Cassiglio', 'shares border with', {'concept': 'administrative territorial entity'}] ['Vedeseta', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Vedeseta', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Vedeseta property:shares_border_with ?z } UNION { resource:Vedeseta property:shares_border_with ?y } UNION { resource:Introbio property:shares_border_with ?z } UNION { resource:Introbio property:shares_border_with ?y } UNION { resource:Gerola_Alta property:shares_border_with ?z } UNION { resource:Gerola_Alta property:shares_border_with ?y } UNION { resource:Barzio property:shares_border_with ?z } UNION { resource:Barzio property:shares_border_with ?y } UNION { resource:Ornica property:shares_border_with ?z } UNION { resource:Ornica property:shares_border_with ?y } UNION { resource:Cassiglio property:shares_border_with ?z } UNION { resource:Cassiglio property:shares_border_with ?y } UNION { resource:Vedeseta property:shares_border_with ?z } UNION { resource:Vedeseta property:shares_border_with ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
designation for an administrative territorial entity administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q42725
SYSTEM
Did you mean Barzio ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Q101721 property:P47 ?z } UNION { resource:Q101721 property:P47 ?y } UNION { resource:Q42856 property:P47 ?z } UNION { resource:Q42856 property:P47 ?y } UNION { resource:Q40127 property:P47 ?z } UNION { resource:Q40127 property:P47 ?y } UNION { resource:Q42725 property:P47 ?z } UNION { resource:Q42725 property:P47 ?y } UNION { resource:Q101312 property:P47 ?z } UNION { resource:Q101312 property:P47 ?y } UNION { resource:Q100162 property:P47 ?z } UNION { resource:Q100162 property:P47 ?y } UNION { resource:Q101721 property:P47 ?z } UNION { resource:Q101721 property:P47 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q56061 }
Did you mean Barzio ?
Barzio
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Vedeseta property:shares_border_with ?z } UNION { resource:Vedeseta property:shares_border_with ?y } UNION { resource:Introbio property:shares_border_with ?z } UNION { resource:Introbio property:shares_border_with ?y } UNION { resource:Gerola_Alta property:shares_border_with ?z } UNION { resource:Gerola_Alta property:shares_border_with ?y } UNION { resource:Barzio property:shares_border_with ?z } UNION { resource:Barzio property:shares_border_with ?y } UNION { resource:Ornica property:shares_border_with ?z } UNION { resource:Ornica property:shares_border_with ?y } UNION { resource:Cassiglio property:shares_border_with ?z } UNION { resource:Cassiglio property:shares_border_with ?y } UNION { resource:Vedeseta property:shares_border_with ?z } UNION { resource:Vedeseta property:shares_border_with ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Vedeseta. Could you tell me the answer for that?
(Q101721,P47,c(Q15617994)) (Q101721,P47,c(Q56061)) (Q42856,P47,c(Q15617994)) (Q42856,P47,c(Q56061)) (Q40127,P47,c(Q15617994)) (Q40127,P47,c(Q56061)) (Q42725,P47,c(Q15617994)) (Q42725,P47,c(Q56061)) (Q101312,P47,c(Q15617994)) (Q101312,P47,c(Q56061)) (Q100162,P47,c(Q15617994)) (Q100162,P47,c(Q56061)) (Q101721,P47,c(Q15617994)) (Q101721,P47,c(Q56061))
Q101721
['Q101721', 'P47', {'concept': 'Q15617994'}] ['Q101721', 'P47', {'concept': 'Q56061'}] ['Q42856', 'P47', {'concept': 'Q15617994'}] ['Q42856', 'P47', {'concept': 'Q56061'}] ['Q40127', 'P47', {'concept': 'Q15617994'}] ['Q40127', 'P47', {'concept': 'Q56061'}] ['Q42725', 'P47', {'concept': 'Q15617994'}] ['Q42725', 'P47', {'concept': 'Q56061'}] ['Q101312', 'P47', {'concept': 'Q15617994'}] ['Q101312', 'P47', {'concept': 'Q56061'}] ['Q100162', 'P47', {'concept': 'Q15617994'}] ['Q100162', 'P47', {'concept': 'Q56061'}] ['Q101721', 'P47', {'concept': 'Q15617994'}] ['Q101721', 'P47', {'concept': 'Q56061'}]
['Vedeseta', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Vedeseta', 'shares border with', {'concept': 'administrative territorial entity'}] ['Introbio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Introbio', 'shares border with', {'concept': 'administrative territorial entity'}] ['Gerola Alta', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Gerola Alta', 'shares border with', {'concept': 'administrative territorial entity'}] ['Barzio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Barzio', 'shares border with', {'concept': 'administrative territorial entity'}] ['Ornica', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Ornica', 'shares border with', {'concept': 'administrative territorial entity'}] ['Cassiglio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Cassiglio', 'shares border with', {'concept': 'administrative territorial entity'}] ['Vedeseta', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Vedeseta', 'shares border with', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
8
Q42877 Q100016 Q100162 Q42725 Q101082 Q101641 Q101718 Q43050
(Q101721,P47,c(Q15617994)) (Q101721,P47,c(Q56061)) (Q42856,P47,c(Q15617994)) (Q42856,P47,c(Q56061)) (Q40127,P47,c(Q15617994)) (Q40127,P47,c(Q56061)) (Q42725,P47,c(Q15617994)) (Q42725,P47,c(Q56061)) (Q101312,P47,c(Q15617994)) (Q101312,P47,c(Q56061)) (Q100162,P47,c(Q15617994)) (Q100162,P47,c(Q56061)) (Q101721,P47,c(Q15617994)) (Q101721,P47,c(Q56061))
[ANSWER]
['Q101721', 'P47', {'concept': 'Q15617994'}] ['Q101721', 'P47', {'concept': 'Q56061'}] ['Q42856', 'P47', {'concept': 'Q15617994'}] ['Q42856', 'P47', {'concept': 'Q56061'}] ['Q40127', 'P47', {'concept': 'Q15617994'}] ['Q40127', 'P47', {'concept': 'Q56061'}] ['Q42725', 'P47', {'concept': 'Q15617994'}] ['Q42725', 'P47', {'concept': 'Q56061'}] ['Q101312', 'P47', {'concept': 'Q15617994'}] ['Q101312', 'P47', {'concept': 'Q56061'}] ['Q100162', 'P47', {'concept': 'Q15617994'}] ['Q100162', 'P47', {'concept': 'Q56061'}] ['Q101721', 'P47', {'concept': 'Q15617994'}] ['Q101721', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Q101721 property:P47 ?z } UNION { resource:Q101721 property:P47 ?y } UNION { resource:Q42856 property:P47 ?z } UNION { resource:Q42856 property:P47 ?y } UNION { resource:Q40127 property:P47 ?z } UNION { resource:Q40127 property:P47 ?y } UNION { resource:Q42725 property:P47 ?z } UNION { resource:Q42725 property:P47 ?y } UNION { resource:Q101312 property:P47 ?z } UNION { resource:Q101312 property:P47 ?y } UNION { resource:Q100162 property:P47 ?z } UNION { resource:Q100162 property:P47 ?y } UNION { resource:Q101721 property:P47 ?z } UNION { resource:Q101721 property:P47 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q56061 }
Moggio Brumano Cassiglio Barzio Fuipiano Valle Imagna Taleggio, Lombardy Valtorta, Lombardy Morterone
8
['Vedeseta', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Vedeseta', 'shares border with', {'concept': 'administrative territorial entity'}] ['Introbio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Introbio', 'shares border with', {'concept': 'administrative territorial entity'}] ['Gerola Alta', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Gerola Alta', 'shares border with', {'concept': 'administrative territorial entity'}] ['Barzio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Barzio', 'shares border with', {'concept': 'administrative territorial entity'}] ['Ornica', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Ornica', 'shares border with', {'concept': 'administrative territorial entity'}] ['Cassiglio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Cassiglio', 'shares border with', {'concept': 'administrative territorial entity'}] ['Vedeseta', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Vedeseta', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { { { resource:Vedeseta property:shares_border_with ?z } UNION { resource:Vedeseta property:shares_border_with ?y } UNION { resource:Introbio property:shares_border_with ?z } UNION { resource:Introbio property:shares_border_with ?y } UNION { resource:Gerola_Alta property:shares_border_with ?z } UNION { resource:Gerola_Alta property:shares_border_with ?y } UNION { resource:Barzio property:shares_border_with ?z } UNION { resource:Barzio property:shares_border_with ?y } UNION { resource:Ornica property:shares_border_with ?z } UNION { resource:Ornica property:shares_border_with ?y } UNION { resource:Cassiglio property:shares_border_with ?z } UNION { resource:Cassiglio property:shares_border_with ?y } UNION { resource:Vedeseta property:shares_border_with ?z } UNION { resource:Vedeseta property:shares_border_with ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P162
Q838948
USER
Which work of art has been produced by United States of America ?
(c(Q838948),P162,Q30)
action filter_type
action find_reverse
entity Q30
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q30']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q838948 . ?n property:P162 resource:Q30 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'United States of America']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:work_of_art . ?n property:producer resource:United_States_of_America }
[]
work of art
Q1193742
SYSTEM
The Thief of Bagdad
Q1193742
(c(Q838948),P162,Q30)
action filter_type
action find_reverse
entity Q30
relation P162
type Q838948
[ANSWER] has been produced by United States of America
[{'concept': 'Q838948'}, 'P162', 'Q30']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q838948 . ?n property:P162 resource:Q30 }
The Thief of Bagdad
The Thief of Bagdad has been produced by United States of America
The Thief of Bagdad
action filter_type
action find_reverse
entity United States of America
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'United States of America']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:work_of_art . ?n property:producer resource:United_States_of_America }
[]