Simple Question (Direct)
Simple Question
Q5056192
P20
Q56061
USER
Where did the expiration of Cecil Leonard Knox occur ?
(Q5056192,P20,c(Q56061))
action filter_type
action find
entity Q5056192
relation P20
type Q56061
['Q5056192', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q5056192 property:P20 ?i . ?i rdf:type ontology:Q56061 }
Cecil Leonard Knox
action filter_type
action find
entity Cecil Leonard Knox
relation place of death
type administrative territorial entity
['Cecil Leonard Knox', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Cecil_Leonard_Knox property:place_of_death ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q175632
SYSTEM
Nuneaton
Q175632
(Q5056192,P20,c(Q56061))
action filter_type
action find
entity Q5056192
relation P20
type Q56061
The expiration of Cecil Leonard Knox occurred at [ANSWER]
['Q5056192', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q5056192 property:P20 ?i . ?i rdf:type ontology:Q56061 }
Nuneaton
The expiration of Cecil Leonard Knox occurred at Nuneaton
Nuneaton
action filter_type
action find
entity Cecil Leonard Knox
relation place of death
type administrative territorial entity
['Cecil Leonard Knox', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Cecil_Leonard_Knox property:place_of_death ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q175632
P190
Q56061
USER
Which administrative territory is sister town of that one ?
(Q175632,P190,c(Q56061))
action filter_type
action find
entity Q175632
relation P190
type Q56061
['Q175632', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q175632 property:P190 ?q }
Nuneaton
action filter_type
action find
entity Nuneaton
relation sister city
type administrative territorial entity
['Nuneaton', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Nuneaton property:sister_city ?q }
[]
administrative territorial entity
Q11953
SYSTEM
Guadalajara
Q11953
(Q175632,P190,c(Q56061))
action filter_type
action find
entity Q175632
relation P190
type Q56061
[ANSWER] is sister town of that one
['Q175632', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q175632 property:P190 ?q }
Guadalajara
Guadalajara is sister town of that one
Guadalajara
action filter_type
action find
entity Nuneaton
relation sister city
type administrative territorial entity
['Nuneaton', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Nuneaton property:sister_city ?q }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q175632
P17
Q15617994
USER
Which administrative territory is Nuneaton situated in ?
(Q175632,P17,c(Q15617994))
action filter_type
action find
entity Q175632
relation P17
type Q15617994
['Q175632', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q175632 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Nuneaton
action filter_type
action find
entity Nuneaton
relation country
type designation for an administrative territorial entity
['Nuneaton', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Nuneaton property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q175632,P17,c(Q15617994))
action filter_type
action find
entity Q175632
relation P17
type Q15617994
Nuneaton is situated in [ANSWER]
['Q175632', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q175632 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
United Kingdom
Nuneaton is situated in United Kingdom
United Kingdom
action filter_type
action find
entity Nuneaton
relation country
type designation for an administrative territorial entity
['Nuneaton', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Nuneaton property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2209202
Q15617994
USER
And also tell me about Bordj Douis?
(Q2209202,P17,c(Q15617994))
action filter_type
action find
entity Q2209202
relation P17
type Q15617994
['Q2209202', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q2209202 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Bordj Douis
action filter_type
action find
entity Bordj Douis
relation country
type designation for an administrative territorial entity
['Bordj Douis', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Bordj_Douis property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q262
SYSTEM
Algeria
Q262
(Q2209202,P17,c(Q15617994))
action filter_type
action find
entity Q2209202
relation P17
type Q15617994
[ANSWER]
['Q2209202', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q2209202 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Algeria
Algeria
action filter_type
action find
entity Bordj Douis
relation country
type designation for an administrative territorial entity
['Bordj Douis', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Bordj_Douis property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q15617994 Q838948 Q11060274
USER
Which administrative territories are depicted in atmost 3 works of art and prints ?
(c(Q838948)|c(Q11060274),P180,c(Q15617994))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
value 3
[[{'concept': 'Q838948'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?c ) WHERE { { ?h property:P180 ?x . ?x rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q11060274 } UNION { ?x rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q838948 . ?h property:P180 ?x } } GROUP BY ?x } . FILTER ( ?c <= 3 ) }
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
value 3
[[{'concept': 'work of art'}, {'concept': 'print'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?c ) WHERE { { ?h property:depicts ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:print } UNION { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:work_of_art . ?h property:depicts ?x } } GROUP BY ?x } . FILTER ( ?c <= 3 ) }
[]
designation for an administrative territorial entity work of art print
Q38 Q155 Q159
SYSTEM
Italy, Brazil, Russia
Q3883 Q1256 Q1462 Q241744 Q674904 Q668 Q142 Q55 Q145 Q47505 Q148 Q128081 Q131596 Q712 Q711 Q243467 Q72672 Q1460 Q660687 Q159 Q41 Q155 Q794 Q160262 Q243128 Q739 Q254356 Q15260970 Q822 Q532 Q11343 Q268214 Q13376 Q12594 Q34 Q928 Q39 Q38 Q858 Q199952 Q854 Q736 Q1280 Q1282 Q20 Q27 Q188315 Q29 Q7077 Q80644 Q189 Q1028 Q47821 Q12574 Q12578 Q223 Q12675 Q229 Q17 Q553347 Q551142 Q652480 Q111144 Q298 Q13320 Q186115 Q373189 Q159605 Q72425 Q12657 Q1438 Q26300792 Q183366 Q6256 Q79 Q72432 Q811 Q772 Q1016 Q1273 Q1011 Q913434 Q242683 Q80563 Q376896 Q34876 Q689720 Q33788 Q12563 Q190963 Q42288 Q1034158
(c(Q838948)|c(Q11060274),P180,c(Q15617994))
action atmost
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
value 3
[ANSWERS] are depicted in atmost 3 works of art and prints
[[{'concept': 'Q838948'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?c ) WHERE { { ?h property:P180 ?x . ?x rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q11060274 } UNION { ?x rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q838948 . ?h property:P180 ?x } } GROUP BY ?x } . FILTER ( ?c <= 3 ) }
Catanzaro Liguria Sardinia Ariccia Krumau am Kamp India France Netherlands United Kingdom Dolo People's Republic of China Cori, Lazio farm Fiji Mongolia Subiaco Sorrento Sicily Velden am Wörther See Russia Greece Brazil Iran Caprarola Olevano Romano Colombia Murnau am Staffelsee Nantcribba Lebanon village Wetter (Ruhr) Bordighera Pistoia Marne Sweden Philippines Switzerland Italy Syria Taormina Sri Lanka Ecuador Umbria Lazio Norway Ireland Porto Venere Spain Dachau Köngen Iceland Morocco Malcesine Loiret Lot-et-Garonne Greenland Oise Cyprus Japan Kobern-Gondorf Wartenberg Kennemerland Canossa Chile Savona Montmartre Bithynia Tivoli Pozzuoli Nièvre Campania Rhos Y Madoc territory country Egypt Procida Nicaragua Drenthe Libya Tuscany Cape Verde Les Halles Genzano di Roma Amalfi Grenelle province Thörl New Caledonia Landes Frascati Asola Cap Norfeu
Italy, Brazil and Russia are depicted in atmost 3 works of art and prints
Italy Brazil Russia
action atmost
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
value 3
[[{'concept': 'work of art'}, {'concept': 'print'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?c ) WHERE { { ?h property:depicts ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:print } UNION { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:work_of_art . ?h property:depicts ?x } } GROUP BY ?x } . FILTER ( ?c <= 3 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1017781 Q175632
P47 P190
Q20667921
USER
Which french administrative divisions are twin cities of Nuneaton or have a shared border with Agnières-en-Dévoluy ?
OR((Q175632,P190,c(Q20667921)), (Q1017781,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q175632
relation P190
action find
entity Q1017781
relation P47
type Q20667921
{'OR': [['Q175632', 'P190', {'concept': 'Q20667921'}], ['Q1017781', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q175632 property:P190 ?f } UNION { resource:Q1017781 property:P47 ?f } } . ?f rdf:type ontology:Q20667921 }
Agnières-en-Dévoluy Nuneaton
action filter_type
action union
action find
entity Nuneaton
relation sister city
action find
entity Agnières-en-Dévoluy
relation shares border with
type type of french administrative division
{'OR': [['Nuneaton', 'sister city', {'concept': 'type of french administrative division'}], ['Agnières-en-Dévoluy', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Nuneaton property:sister_city ?f } UNION { resource:Agnières-en-Dévoluy property:shares_border_with ?f } } . ?f rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q3581 Q735356 Q468568 Q1017858 Q780103 Q1085697
SYSTEM
Roanne, Montmaur, Lus-la-Croix-Haute, La Cluse, Saint-Étienne-en-Dévoluy, Saint-Disdier
Q3581 Q735356 Q468568 Q1017858 Q780103 Q1085697
OR((Q175632,P190,c(Q20667921)), (Q1017781,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q175632
relation P190
action find
entity Q1017781
relation P47
type Q20667921
[ANSWERS] are twin cities of Nuneaton or have a shared border with Agnières-en-Dévoluy
{'OR': [['Q175632', 'P190', {'concept': 'Q20667921'}], ['Q1017781', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q175632 property:P190 ?f } UNION { resource:Q1017781 property:P47 ?f } } . ?f rdf:type ontology:Q20667921 }
Roanne Montmaur Lus-la-Croix-Haute La Cluse Saint-Étienne-en-Dévoluy Saint-Disdier
Roanne, Montmaur, Lus-la-Croix-Haute, La Cluse, Saint-Étienne-en-Dévoluy and Saint-Disdier are twin cities of Nuneaton or have a shared border with Agnières-en-Dévoluy
Roanne Montmaur Lus-la-Croix-Haute La Cluse Saint-Étienne-en-Dévoluy Saint-Disdier
action filter_type
action union
action find
entity Nuneaton
relation sister city
action find
entity Agnières-en-Dévoluy
relation shares border with
type type of french administrative division
{'OR': [['Nuneaton', 'sister city', {'concept': 'type of french administrative division'}], ['Agnières-en-Dévoluy', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Nuneaton property:sister_city ?f } UNION { resource:Agnières-en-Dévoluy property:shares_border_with ?f } } . ?f rdf:type ontology:type_of_french_administrative_division }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q725168
P1376
Q20667921 Q515
USER
Which cities are the capital of more number of french administrative divisions than Tagum ?
(c(Q515),P1376,c(Q20667921))
action greater
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_type
action find
entity Q725168
relation P1376
type Q515
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?w ) AS ?f ) WHERE { ?r property:P1376 ?w . ?r rdf:type ontology:Q515 . ?w rdf:type ontology:Q20667921 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Q725168 property:P1376 ?o . ?o rdf:type ontology:Q515 } } . FILTER ( ?f > ?u ) }
Tagum
action greater
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_type
action find
entity Tagum
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?w ) AS ?f ) WHERE { ?r property:capital_of ?w . ?r rdf:type ontology:city . ?w rdf:type ontology:type_of_french_administrative_division } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Tagum property:capital_of ?o . ?o rdf:type ontology:city } } . FILTER ( ?f > ?u ) }
[]
type of french administrative division city
Q23482 Q456 Q7003
SYSTEM
Marseille, Lyon, Dijon
Q23482 Q6602 Q6582 Q456 Q7003
(c(Q515),P1376,c(Q20667921))
action greater
action find_tuple_counts
relation P1376
type Q515
type Q20667921
action count
action filter_type
action find
entity Q725168
relation P1376
type Q515
[ANSWERS] are the capital of more number of french administrative divisions than Tagum
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?w ) AS ?f ) WHERE { ?r property:P1376 ?w . ?r rdf:type ontology:Q515 . ?w rdf:type ontology:Q20667921 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Q725168 property:P1376 ?o . ?o rdf:type ontology:Q515 } } . FILTER ( ?f > ?u ) }
Marseille Strasbourg Carcassonne Lyon Dijon
Marseille, Lyon and Dijon are the capital of more number of french administrative divisions than Tagum
Marseille Lyon Dijon
action greater
action find_tuple_counts
relation capital of
type city
type type of french administrative division
action count
action filter_type
action find
entity Tagum
relation capital of
type city
[{'concept': 'city'}, 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?w ) AS ?f ) WHERE { ?r property:capital_of ?w . ?r rdf:type ontology:city . ?w rdf:type ontology:type_of_french_administrative_division } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Tagum property:capital_of ?o . ?o rdf:type ontology:city } } . FILTER ( ?f > ?u ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P1427
Q515 Q18608583 Q878123
USER
How many cities do around the same number of recurring sporting events and racings start as that city ?
(c(Q18608583)|c(Q878123),P1427,c(Q515))
[[{'concept': 'Q18608583'}, {'concept': 'Q878123'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?j ) { ( ?z ) ( ?x ) } . ?j property:P1427 ?y } . ?z rdf:type ontology:Q18608583 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q878123 }
[[{'concept': 'recurring sporting event'}, {'concept': 'racing'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?j ) { ( ?z ) ( ?x ) } . ?j property:start_point ?y } . ?z rdf:type ontology:recurring_sporting_event . ?y rdf:type ontology:city . ?x rdf:type ontology:racing }
[]
city recurring sporting event racing
Comparative|Count over More/Less|Mult. entity type|Clarification
Q456
SYSTEM
Did you mean Lyon ?
(c(Q18608583)|c(Q878123),P1427,c(Q515))
[ANSWER]
[[{'concept': 'Q18608583'}, {'concept': 'Q878123'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?j ) { ( ?z ) ( ?x ) } . ?j property:P1427 ?y } . ?z rdf:type ontology:Q18608583 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q878123 }
Did you mean Lyon ?
Lyon
[[{'concept': 'recurring sporting event'}, {'concept': 'racing'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { VALUES ( ?j ) { ( ?z ) ( ?x ) } . ?j property:start_point ?y } . ?z rdf:type ontology:recurring_sporting_event . ?y rdf:type ontology:city . ?x rdf:type ontology:racing }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Marseille. Could you tell me the answer for that?
(c(Q18608583)|c(Q878123),P1427,c(Q515))
Q23482
[[{'concept': 'Q18608583'}, {'concept': 'Q878123'}], 'P1427', {'concept': 'Q515'}]
[[{'concept': 'recurring sporting event'}, {'concept': 'racing'}], 'start point', {'concept': 'city'}]
[]
SYSTEM
28
Q23482 Q682361 Q505208 Q1794 Q1863 Q117676 Q840610 Q1636 Q9005 Q197922 Q3859 Q182378 Q19660 Q6582 Q1486 Q11736 Q2978 Q533157 Q488869 Q1761 Q1854 Q166282 Q3046 Q235 Q17042 Q3861 Q16666 Q3826
(c(Q18608583)|c(Q878123),P1427,c(Q515))
[ANSWER]
[[{'concept': 'Q18608583'}, {'concept': 'Q878123'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q18608583 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q878123 }
Marseille Uničov Ouarzazate Frankfurt Andorra la Vella Viseu Yamanashi Antipolo Brussels Zhongwei Kigali Putrajaya Bucharest Carcassonne Buenos Aires Tianjin Regensburg Tianshui Benalmádena Dublin Ho Chi Minh City Alghero Pforzheim Monaco Oakland Doha Nanjing Muscat
28
[[{'concept': 'recurring sporting event'}, {'concept': 'racing'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:recurring_sporting_event . ?y rdf:type ontology:city . ?x rdf:type ontology:racing }
[]