Simple Question (Direct)
Simple Question
Q1597504
P937
Q56061
USER
Which is the work location of Heinrich Hansmann ?
(Q1597504,P937,c(Q56061))
action filter_type
action find
entity Q1597504
relation P937
type Q56061
['Q1597504', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q1597504 property:P937 ?t . ?t rdf:type ontology:Q56061 }
Heinrich Hansmann
action filter_type
action find
entity Heinrich Hansmann
relation work location
type administrative territorial entity
['Heinrich Hansmann', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Heinrich_Hansmann property:work_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q1597504,P937,c(Q56061))
action filter_type
action find
entity Q1597504
relation P937
type Q56061
[ANSWER] is the work location of Heinrich Hansmann
['Q1597504', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q1597504 property:P937 ?t . ?t rdf:type ontology:Q56061 }
Berlin
Berlin is the work location of Heinrich Hansmann
Berlin
action filter_type
action find
entity Heinrich Hansmann
relation work location
type administrative territorial entity
['Heinrich Hansmann', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Heinrich_Hansmann property:work_location ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q64
P1376
Q183366
USER
Which territory has that administrative territory has its first city ?
(Q64,P1376,c(Q183366))
action filter_type
action find
entity Q64
relation P1376
type Q183366
['Q64', 'P1376', {'concept': 'Q183366'}]
SELECT DISTINCT ?f WHERE { resource:Q64 property:P1376 ?f . ?f rdf:type ontology:Q183366 }
Berlin
action filter_type
action find
entity Berlin
relation capital of
type territory
['Berlin', 'capital of', {'concept': 'territory'}]
SELECT DISTINCT ?f WHERE { resource:Berlin property:capital_of ?f . ?f rdf:type ontology:territory }
[]
territory
Q2415901
SYSTEM
Allied-occupied Germany
Q2415901
(Q64,P1376,c(Q183366))
action filter_type
action find
entity Q64
relation P1376
type Q183366
[ANSWER] has that administrative territory has its first city
['Q64', 'P1376', {'concept': 'Q183366'}]
SELECT DISTINCT ?f WHERE { resource:Q64 property:P1376 ?f . ?f rdf:type ontology:Q183366 }
Allied-occupied Germany
Allied-occupied Germany has that administrative territory has its first city
Allied-occupied Germany
action filter_type
action find
entity Berlin
relation capital of
type territory
['Berlin', 'capital of', {'concept': 'territory'}]
SELECT DISTINCT ?f WHERE { resource:Berlin property:capital_of ?f . ?f rdf:type ontology:territory }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q64
Q7275
USER
And which state?
(Q64,P1376,c(Q7275))
action filter_type
action find
entity Q64
relation P1376
type Q7275
['Q64', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?l WHERE { resource:Q64 property:P1376 ?l . ?l rdf:type ontology:Q7275 }
Berlin
action filter_type
action find
entity Berlin
relation capital of
type state
['Berlin', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?l WHERE { resource:Berlin property:capital_of ?l . ?l rdf:type ontology:state }
[]
state
Q41304 Q7318 Q27306
SYSTEM
Weimar Republic, Nazi Germany, Kingdom of Prussia
Q157367 Q27306 Q161036 Q41304 Q7318
(Q64,P1376,c(Q7275))
action filter_type
action find
entity Q64
relation P1376
type Q7275
[ANSWERS]
['Q64', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?l WHERE { resource:Q64 property:P1376 ?l . ?l rdf:type ontology:Q7275 }
Brandenburg-Prussia Kingdom of Prussia Free State of Prussia Weimar Republic Nazi Germany
Weimar Republic Nazi Germany Kingdom of Prussia
action filter_type
action find
entity Berlin
relation capital of
type state
['Berlin', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?l WHERE { resource:Berlin property:capital_of ?l . ?l rdf:type ontology:state }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q7275 Q515 Q20667921
USER
Which states have atleast 1 cities or french administrative divisions as their county seat ?
(c(Q515)|c(Q20667921),P1376,c(Q7275))
action atleast
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
value 1
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?e ) WHERE { { ?t property:P1376 ?c . ?c rdf:type ontology:Q7275 . ?t rdf:type ontology:Q20667921 } UNION { ?t property:P1376 ?c . ?t rdf:type ontology:Q515 . ?c rdf:type ontology:Q7275 } } GROUP BY ?c } . FILTER ( ?e >= 1 ) }
action atleast
action union
action find_reverse_tuple_counts
relation capital of
type state
type city
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
value 1
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?e ) WHERE { { ?t property:capital_of ?c . ?c rdf:type ontology:state . ?t rdf:type ontology:type_of_french_administrative_division } UNION { ?t property:capital_of ?c . ?t rdf:type ontology:city . ?c rdf:type ontology:state } } GROUP BY ?c } . FILTER ( ?e >= 1 ) }
[]
state city type of french administrative division
Q133356 Q112558 Q213586
SYSTEM
Ukrainian Soviet Socialist Republic, Republic of Saugeais, Gondor
Q178665 Q18285930 Q3456417 Q855044 Q210198 Q133356 Q215530 Q912043 Q203493 Q1574107 Q15864 Q698089 Q210542 Q2114397 Q220110 Q1414395 Q756895 Q49697 Q6500954 Q274488 Q476757 Q1274468 Q234197 Q1108445 Q153080 Q1154540 Q550374 Q19831559 Q1048918 Q783489 Q618399 Q180573 Q216786 Q752662 Q1668970 Q320930 Q849623 Q139670 Q1138904 Q7352 Q9903 Q941881 Q38060 Q844250 Q738144 Q207521 Q1658411 Q157734 Q1415585 Q146328 Q1508143 Q940821 Q248572 Q697084 Q213586 Q11196 Q842091 Q146713 Q427941 Q697837 Q747314 Q307069 Q28278 Q62454 Q112558 Q1192067 Q2372248 Q505503 Q153015 Q846670 Q696242 Q1479726 Q467864 Q212056 Q13426199 Q3041595 Q484104 Q648297 Q149805
(c(Q515)|c(Q20667921),P1376,c(Q7275))
action atleast
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
value 1
[ANSWERS] have atleast 1 cities or french administrative divisions as their county seat
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?e ) WHERE { { ?t property:P1376 ?c . ?c rdf:type ontology:Q7275 . ?t rdf:type ontology:Q20667921 } UNION { ?t property:P1376 ?c . ?t rdf:type ontology:Q515 . ?c rdf:type ontology:Q7275 } } GROUP BY ?c } . FILTER ( ?e >= 1 ) }
Mitanni German Empire of 1848/1849 Republic of Saint-Malo Bhopal State Erivan Khanate Ukrainian Soviet Socialist Republic Kingdom of Ireland Jin Kingdom of Romania Han Zhao United Kingdom of the Netherlands Grand Duchy of Würzburg Second Brazilian Republic Yogyakarta Sultanate Rohan Republic of South Maluku Kediri Liu Song dynasty Zaire Eastern Wu Democratic Republic of Afghanistan Republic of Bosnia and Herzegovina Srivijaya Kievan Rus' East Francia Later Jin Dynasty South African Republic Oldenburg Suebic Kingdom of Galicia Later Liang dynasty Republic of the Congo South Vietnam Champa Hafsid dynasty Western Qin Cao Wei Oyo Empire Democratic Republic of Armenia Kingdom of Afghanistan Jin dynasty Ming imperium Netherlands New Guinea Gaul Lordship of Ireland United Provinces of the Río de la Plata Abyssinia Kingdom of Sarawak Muscat and Oman Islamic State of Afghanistan Commonwealth of the Philippines Ukrainian State People's Democratic Republic of Ethiopia Sultanate of Maguindanao Duchy of Oldenburg Gondor Republika Srpska Duchy of Normandy Arab Federation Islamic Emirate of Afghanistan Mengjiang Bechuanaland Protectorate Eastern Wei Provisional Government of the Republic of Korea Chen dynasty Republic of Saugeais Min Free State of Oldenburg Cochinchina Kingdom of Saxony Danishmends Reorganized National Government of China Federation of Malaya People's Socialist Republic of Albania Mongolian People's Republic Republic of China Republic of Iraq United States Army Military Government in Korea Free State of Brunswick Kingdom of Iraq
Ukrainian Soviet Socialist Republic, Republic of Saugeais and Gondor have atleast 1 cities or french administrative divisions as their county seat
Ukrainian Soviet Socialist Republic Republic of Saugeais Gondor
action atleast
action union
action find_reverse_tuple_counts
relation capital of
type state
type city
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
value 1
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?t ) AS ?e ) WHERE { { ?t property:capital_of ?c . ?c rdf:type ontology:state . ?t rdf:type ontology:type_of_french_administrative_division } UNION { ?t property:capital_of ?c . ?t rdf:type ontology:city . ?c rdf:type ontology:state } } GROUP BY ?c } . FILTER ( ?e >= 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P194
Q11204 Q1752346 Q7275
USER
Which states have max number of legislatures and assemblies as their council ?
(c(Q7275),P194,c(Q11204)|c(Q1752346))
action argmax
action union
action find_tuple_counts
relation P194
type Q7275
type Q11204
action find_tuple_counts
relation P194
type Q7275
type Q1752346
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?y ) { SELECT DISTINCT ?c ( COUNT ( ?u ) AS ?p ) WHERE { { ?c property:P194 ?u . ?c rdf:type ontology:Q7275 . ?u rdf:type ontology:Q11204 } UNION { ?c rdf:type ontology:Q7275 . ?u rdf:type ontology:Q1752346 . ?c property:P194 ?u } } GROUP BY ?c } } . { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?f ) WHERE { ?v rdf:type ?n . VALUES ( ?n ) { ( ontology:Q11204 ) ( ontology:Q1752346 ) } } GROUP BY ?w } . FILTER ( ?f = ?y ) }
action argmax
action union
action find_tuple_counts
relation legislative body
type state
type legislature
action find_tuple_counts
relation legislative body
type state
type assembly
[{'concept': 'state'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?y ) { SELECT DISTINCT ?c ( COUNT ( ?u ) AS ?p ) WHERE { { ?c property:legislative_body ?u . ?c rdf:type ontology:state . ?u rdf:type ontology:legislature } UNION { ?c rdf:type ontology:state . ?u rdf:type ontology:assembly . ?c property:legislative_body ?u } } GROUP BY ?c } } . { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?f ) WHERE { ?v rdf:type ?n . VALUES ( ?n ) { ( ontology:legislature ) ( ontology:assembly ) } } GROUP BY ?w } . FILTER ( ?f = ?y ) }
[]
legislature assembly state
Q131964
SYSTEM
Austrian Empire
Q131964
(c(Q7275),P194,c(Q11204)|c(Q1752346))
action argmax
action union
action find_tuple_counts
relation P194
type Q7275
type Q11204
action find_tuple_counts
relation P194
type Q7275
type Q1752346
[ANSWER] have max number of legislatures and assemblies as their council
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q11204'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?y ) { SELECT DISTINCT ?c ( COUNT ( ?u ) AS ?p ) WHERE { { ?c property:P194 ?u . ?c rdf:type ontology:Q7275 . ?u rdf:type ontology:Q11204 } UNION { ?c rdf:type ontology:Q7275 . ?u rdf:type ontology:Q1752346 . ?c property:P194 ?u } } GROUP BY ?c } } . { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?f ) WHERE { ?v rdf:type ?n . VALUES ( ?n ) { ( ontology:Q11204 ) ( ontology:Q1752346 ) } } GROUP BY ?w } . FILTER ( ?f = ?y ) }
Austrian Empire
Austrian Empire have max number of legislatures and assemblies as their council
Austrian Empire
action argmax
action union
action find_tuple_counts
relation legislative body
type state
type legislature
action find_tuple_counts
relation legislative body
type state
type assembly
[{'concept': 'state'}, 'legislative body', [{'concept': 'legislature'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?y ) { SELECT DISTINCT ?c ( COUNT ( ?u ) AS ?p ) WHERE { { ?c property:legislative_body ?u . ?c rdf:type ontology:state . ?u rdf:type ontology:legislature } UNION { ?c rdf:type ontology:state . ?u rdf:type ontology:assembly . ?c property:legislative_body ?u } } GROUP BY ?c } } . { SELECT DISTINCT ?w ( COUNT ( ?v ) AS ?f ) WHERE { ?v rdf:type ?n . VALUES ( ?n ) { ( ontology:legislature ) ( ontology:assembly ) } } GROUP BY ?w } . FILTER ( ?f = ?y ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6196641 Q2415901
P19 P36
Q56061
USER
Which administrative territories are the capitals of Allied-occupied Germany or were Jim Marshall born in ?
OR((Q2415901,P36,c(Q56061)), (Q6196641,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2415901
relation P36
action find
entity Q6196641
relation P19
type Q56061
{'OR': [['Q2415901', 'P36', {'concept': 'Q56061'}], ['Q6196641', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q2415901 property:P36 ?z } UNION { resource:Q6196641 property:P19 ?z } } . ?z rdf:type ontology:Q56061 }
Jim Marshall Allied-occupied Germany
action filter_type
action union
action find
entity Allied-occupied Germany
relation capital
action find
entity Jim Marshall
relation place of birth
type administrative territorial entity
{'OR': [['Allied-occupied Germany', 'capital', {'concept': 'administrative territorial entity'}], ['Jim Marshall', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Allied-occupied_Germany property:capital ?z } UNION { resource:Jim_Marshall property:place_of_birth ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q577334
SYSTEM
Berlin, Danville
Q64 Q577334
OR((Q2415901,P36,c(Q56061)), (Q6196641,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2415901
relation P36
action find
entity Q6196641
relation P19
type Q56061
[ANSWERS] are the capitals of Allied-occupied Germany or were Jim Marshall born in
{'OR': [['Q2415901', 'P36', {'concept': 'Q56061'}], ['Q6196641', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q2415901 property:P36 ?z } UNION { resource:Q6196641 property:P19 ?z } } . ?z rdf:type ontology:Q56061 }
Berlin Danville
Berlin and Danville are the capitals of Allied-occupied Germany or were Jim Marshall born in
Berlin Danville
action filter_type
action union
action find
entity Allied-occupied Germany
relation capital
action find
entity Jim Marshall
relation place of birth
type administrative territorial entity
{'OR': [['Allied-occupied Germany', 'capital', {'concept': 'administrative territorial entity'}], ['Jim Marshall', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Allied-occupied_Germany property:capital ?z } UNION { resource:Jim_Marshall property:place_of_birth ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories are that administrative territory situated in ?
(Q577334,P17,c(Q15617994))
['Q577334', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q5395781 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['Danville', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Danville property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q64
SYSTEM
Did you mean Berlin ?
(Q64,P17,c(Q15617994)) (Q577334,P17,c(Q15617994))
[ANSWER]
['Q64', 'P17', {'concept': 'Q15617994'}] ['Q577334', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q5395781 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Berlin ?
Berlin
['Berlin', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Danville', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Danville property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Danville. Could you tell me the answer for that?
(Q577334,P17,c(Q15617994))
Q577334
['Q577334', 'P17', {'concept': 'Q15617994'}]
['Danville', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q30
(Q577334,P17,c(Q15617994))
[ANSWER]
['Q577334', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q5395781 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
United States of America
1
['Danville', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Danville property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P1427
Q18608583
USER
Which recurring sporting event has start point at Berlin ?
(c(Q18608583),P1427,Q64)
action filter_type
action find_reverse
entity Q64
relation P1427
type Q18608583
[{'concept': 'Q18608583'}, 'P1427', 'Q64']
SELECT DISTINCT ?z WHERE { ?z property:P1427 resource:Q64 . ?z rdf:type ontology:Q18608583 }
Berlin
action filter_type
action find_reverse
entity Berlin
relation start point
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'start point', 'Berlin']
SELECT DISTINCT ?z WHERE { ?z property:start_point resource:Berlin . ?z rdf:type ontology:recurring_sporting_event }
[]
recurring sporting event
Q20962750
SYSTEM
Velothon Berlin 2015
Q20962750
(c(Q18608583),P1427,Q64)
action filter_type
action find_reverse
entity Q64
relation P1427
type Q18608583
[ANSWER] has start point at Berlin
[{'concept': 'Q18608583'}, 'P1427', 'Q64']
SELECT DISTINCT ?z WHERE { ?z property:P1427 resource:Q64 . ?z rdf:type ontology:Q18608583 }
Velothon Berlin 2015
Velothon Berlin 2015 has start point at Berlin
Velothon Berlin 2015
action filter_type
action find_reverse
entity Berlin
relation start point
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'start point', 'Berlin']
SELECT DISTINCT ?z WHERE { ?z property:start_point resource:Berlin . ?z rdf:type ontology:recurring_sporting_event }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q64
P159
Q13226383
USER
Which facility has its head office location at that administrative territory ?
(c(Q13226383),P159,Q20962750)
action filter_type
action find_reverse
entity Q64
relation P159
type Q13226383
[{'concept': 'Q13226383'}, 'P159', 'Q20962750']
SELECT DISTINCT ?f WHERE { ?f property:P159 resource:Q64 . ?f rdf:type ontology:Q13226383 }
Berlin
action filter_type
action find_reverse
entity Berlin
relation headquarters location
type facility
[{'concept': 'facility'}, 'headquarters location', 'Velothon Berlin 2015']
SELECT DISTINCT ?f WHERE { ?f property:headquarters_location resource:Berlin . ?f rdf:type ontology:facility }
[]
facility
Q651061
SYSTEM
Heinrich Böll Foundation
Q651061
(c(Q13226383),P159,Q20962750)
action filter_type
action find_reverse
entity Q64
relation P159
type Q13226383
[ANSWER] has its head office location at that administrative territory
[{'concept': 'Q13226383'}, 'P159', 'Q20962750']
SELECT DISTINCT ?f WHERE { ?f property:P159 resource:Q64 . ?f rdf:type ontology:Q13226383 }
Heinrich Böll Foundation
Heinrich Böll Foundation has its head office location at that administrative territory
Heinrich Böll Foundation
action filter_type
action find_reverse
entity Berlin
relation headquarters location
type facility
[{'concept': 'facility'}, 'headquarters location', 'Velothon Berlin 2015']
SELECT DISTINCT ?f WHERE { ?f property:headquarters_location resource:Berlin . ?f rdf:type ontology:facility }
[]