Simple Question (Direct)
Simple Question
Q3083457
P39
Q12737077
USER
Which occupation was a position occupied by François-Joseph Jary ?
(Q3083457,P39,c(Q12737077))
action filter_type
action find
entity Q3083457
relation P39
type Q12737077
['Q3083457', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q3083457 property:P39 ?x . ?x rdf:type ontology:Q12737077 }
François-Joseph Jary
action filter_type
action find
entity François-Joseph Jary
relation position held
type occupation
['François-Joseph Jary', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:François-Joseph_Jary property:position_held ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q3044918
SYSTEM
member of the French National Assembly
Q3044918
(Q3083457,P39,c(Q12737077))
action filter_type
action find
entity Q3083457
relation P39
type Q12737077
A member of the French National Assembly was a position occupied by François-Joseph Jary
['Q3083457', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q3083457 property:P39 ?x . ?x rdf:type ontology:Q12737077 }
member of the French National Assembly
A member of the French National Assembly was a position occupied by François-Joseph Jary
member of the French National Assembly
action filter_type
action find
entity François-Joseph Jary
relation position held
type occupation
['François-Joseph Jary', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:François-Joseph_Jary property:position_held ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3083457
P20
Q56061
USER
Where did the expiration of François-Joseph Jary occur ?
(Q3083457,P20,c(Q56061))
action filter_type
action find
entity Q3083457
relation P20
type Q56061
['Q3083457', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q3083457 property:P20 ?l . ?l rdf:type ontology:Q56061 }
François-Joseph Jary
action filter_type
action find
entity François-Joseph Jary
relation place of death
type administrative territorial entity
['François-Joseph Jary', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:François-Joseph_Jary property:place_of_death ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q12191
SYSTEM
Nantes
Q12191
(Q3083457,P20,c(Q56061))
action filter_type
action find
entity Q3083457
relation P20
type Q56061
The expiration of François-Joseph Jary occurred in [ANSWER]
['Q3083457', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q3083457 property:P20 ?l . ?l rdf:type ontology:Q56061 }
Nantes
The expiration of François-Joseph Jary occurred in Nantes
Nantes
action filter_type
action find
entity François-Joseph Jary
relation place of death
type administrative territorial entity
['François-Joseph Jary', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:François-Joseph_Jary property:place_of_death ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q20822029
Q56061
USER
And what about David Anthony Allen?
(Q20822029,P20,c(Q56061))
action filter_type
action find
entity Q20822029
relation P20
type Q56061
['Q20822029', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q20822029 property:P20 ?e . ?e rdf:type ontology:Q56061 }
David Anthony Allen
action filter_type
action find
entity David Anthony Allen
relation place of death
type administrative territorial entity
['David Anthony Allen', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:David_Anthony_Allen property:place_of_death ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3130
SYSTEM
Sydney
Q3130
(Q20822029,P20,c(Q56061))
action filter_type
action find
entity Q20822029
relation P20
type Q56061
[ANSWER]
['Q20822029', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q20822029 property:P20 ?e . ?e rdf:type ontology:Q56061 }
Sydney
Sydney
action filter_type
action find
entity David Anthony Allen
relation place of death
type administrative territorial entity
['David Anthony Allen', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:David_Anthony_Allen property:place_of_death ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q3130 Q1489 Q72259
P190
Q56061
USER
Is that administrative territory a sister city of Mexico City and Portsmouth ?
(Q3130,P190,Q1489) (Q3130,P190,Q72259)
action is_in
entity Q3130
action intersection
action find_reverse
entity Q1489
relation P190
action find_reverse
entity Q72259
relation P190
['Q3130', 'P190', 'Q1489'] ['Q3130', 'P190', 'Q72259']
ASK WHERE { resource:Q3130 property:P190 resource:Q72259 . resource:Q3130 property:P190 resource:Q1489 }
Sydney Mexico City Portsmouth
action is_in
entity Sydney
action intersection
action find_reverse
entity Mexico City
relation sister city
action find_reverse
entity Portsmouth
relation sister city
['Sydney', 'sister city', 'Mexico City'] ['Sydney', 'sister city', 'Portsmouth']
ASK WHERE { resource:Sydney property:sister_city resource:Portsmouth . resource:Sydney property:sister_city resource:Mexico_City }
[]
administrative territorial entity
SYSTEM
YES
(Q3130,P190,Q1489) (Q3130,P190,Q72259)
action is_in
entity Q3130
action intersection
action find_reverse
entity Q1489
relation P190
action find_reverse
entity Q72259
relation P190
[ANSWER]
['Q3130', 'P190', 'Q1489'] ['Q3130', 'P190', 'Q72259']
ASK WHERE { resource:Q3130 property:P190 resource:Q72259 . resource:Q3130 property:P190 resource:Q1489 }
Yes
action is_in
entity Sydney
action intersection
action find_reverse
entity Mexico City
relation sister city
action find_reverse
entity Portsmouth
relation sister city
['Sydney', 'sister city', 'Mexico City'] ['Sydney', 'sister city', 'Portsmouth']
ASK WHERE { resource:Sydney property:sister_city resource:Portsmouth . resource:Sydney property:sister_city resource:Mexico_City }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1745411 Q1489
P190 P20
Q56061
USER
Which administrative territories are partner towns of Mexico City or did Klaus Mahnert die ?
OR((Q1489,P190,c(Q56061)), (Q1745411,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1489
relation P190
action find
entity Q1745411
relation P20
type Q56061
{'OR': [['Q1489', 'P190', {'concept': 'Q56061'}], ['Q1745411', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . { { resource:Q1489 property:P190 ?k } UNION { resource:Q1745411 property:P20 ?k } } }
Klaus Mahnert Mexico City
action filter_type
action union
action find
entity Mexico City
relation sister city
action find
entity Klaus Mahnert
relation place of death
type administrative territorial entity
{'OR': [['Mexico City', 'sister city', {'concept': 'administrative territorial entity'}], ['Klaus Mahnert', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . { { resource:Mexico_City property:sister_city ?k } UNION { resource:Klaus_Mahnert property:place_of_death ?k } } }
[]
administrative territorial entity
Q35178 Q2868 Q16555 Q174 Q956 Q171632 Q8678 Q1754 Q85 Q3856
SYSTEM
Some of them are Kuwait City, Lima, Houston, São Paulo, Beijing, Maracaibo, Rio de Janeiro, Stockholm, Cairo, Nicosia
Q1754 Q1022 Q35178 Q1735 Q3110 Q3130 Q1297 Q65 Q1829 Q34820 Q1524 Q41211 Q1335 Q1563 Q3630 Q3306 Q33935 Q1490 Q5582862 Q85 Q3856 Q406 Q174 Q172 Q2868 Q8678 Q2807 Q597 Q956 Q1555 Q159273 Q64 Q1491 Q3820 Q171632 Q16555
OR((Q1489,P190,c(Q56061)), (Q1745411,P20,c(Q56061)))
action filter_type
action union
action find
entity Q1489
relation P190
action find
entity Q1745411
relation P20
type Q56061
[ANSWERS] are partner towns of Mexico City or did Klaus Mahnert die
{'OR': [['Q1489', 'P190', {'concept': 'Q56061'}], ['Q1745411', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . { { resource:Q1489 property:P190 ?k } UNION { resource:Q1745411 property:P20 ?k } } }
Stockholm Stuttgart Kuwait City Innsbruck San Salvador Sydney Chicago Los Angeles Kaliningrad Santo Domingo Athens San Juan Montevideo Havana Jakarta Panama City Tel Aviv Tokyo Cusco Cairo Nicosia Istanbul São Paulo Toronto Lima Rio de Janeiro Madrid Lisbon Beijing Guatemala City Arequipa Berlin La Paz Beirut Maracaibo Houston
Kuwait City, Lima, Houston, São Paulo, Beijing, Maracaibo, Rio de Janeiro, Stockholm, Cairo and Nicosia are partner towns of Mexico City or did Klaus Mahnert die
Kuwait City Lima Houston São Paulo Beijing Maracaibo Rio de Janeiro Stockholm Cairo Nicosia
action filter_type
action union
action find
entity Mexico City
relation sister city
action find
entity Klaus Mahnert
relation place of death
type administrative territorial entity
{'OR': [['Mexico City', 'sister city', {'concept': 'administrative territorial entity'}], ['Klaus Mahnert', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . { { resource:Mexico_City property:sister_city ?k } UNION { resource:Klaus_Mahnert property:place_of_death ?k } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q956
P190
Q13220204 Q56061
USER
How many administrative country subdivisions and administrative territories are sister town of Beijing ?
(c(Q13220204),P190,Q956) (c(Q56061),P190,Q956)
action count
action union
action filter_type
action find_reverse
entity Q956
relation P190
type Q13220204
action filter_type
action find_reverse
entity Q956
relation P190
type Q56061
[{'concept': 'Q13220204'}, 'P190', 'Q956'] [{'concept': 'Q56061'}, 'P190', 'Q956']
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ?w . VALUES ( ?w ) { ( ontology:Q13220204 ) ( ontology:Q56061 ) } }
Beijing
action count
action union
action filter_type
action find_reverse
entity Beijing
relation sister city
type second-level administrative country subdivision
action filter_type
action find_reverse
entity Beijing
relation sister city
type administrative territorial entity
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Beijing'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Beijing']
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ?w . VALUES ( ?w ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:administrative_territorial_entity ) } }
[]
second-level administrative country subdivision administrative territorial entity
SYSTEM
1 administrative country subdivisions and 33 administrative territories
Q727 Q649 Q1861 Q365 Q3114 Q3805 Q9899 Q34820 Q1524 Q3711 Q1520 Q1781 Q1489 Q3630 Q1748 Q33935 Q3561 Q1490 Q84 Q85 Q1930 Q174 Q2868 Q8678 Q239 Q34647 Q490 Q2807 Q2280 Q3640 Q64 Q210987 Q60 Q61
(c(Q13220204),P190,Q956) (c(Q56061),P190,Q956)
action count
action union
action filter_type
action find_reverse
entity Q956
relation P190
type Q13220204
action filter_type
action find_reverse
entity Q956
relation P190
type Q56061
[ANSWER]
[{'concept': 'Q13220204'}, 'P190', 'Q956'] [{'concept': 'Q56061'}, 'P190', 'Q956']
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ?w . VALUES ( ?w ) { ( ontology:Q13220204 ) ( ontology:Q56061 ) } }
Amsterdam Moscow Bangkok Cologne Canberra Amman Amsterdam Santo Domingo Athens Belgrade Astana Budapest Mexico City Jakarta Copenhagen Tel Aviv Algiers Tokyo London Cairo Ottawa São Paulo Lima Rio de Janeiro Brussels Johannesburg Milan Madrid Minsk Ankara Berlin Salo New York City Washington, D.C.
1 administrative country subdivisions and 33 administrative territories
action count
action union
action filter_type
action find_reverse
entity Beijing
relation sister city
type second-level administrative country subdivision
action filter_type
action find_reverse
entity Beijing
relation sister city
type administrative territorial entity
[{'concept': 'second-level administrative country subdivision'}, 'sister city', 'Beijing'] [{'concept': 'administrative territorial entity'}, 'sister city', 'Beijing']
SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) WHERE { ?h rdf:type ?w . VALUES ( ?w ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:administrative_territorial_entity ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q11974
P417
Q1445650 Q502895 Q56061
USER
Which administrative territories have more number of holidays or people as their patron saint than Las Palmas de Gran Canaria ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q11974
relation P417
type Q1445650
type Q502895
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) ?l WHERE { { ?l property:P417 ?v . ?l rdf:type ontology:Q56061 . ?v rdf:type ontology:Q1445650 } UNION { ?l property:P417 ?v . ?l rdf:type ontology:Q56061 . ?v rdf:type ontology:Q502895 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:Q11974 property:P417 ?h . { VALUES ( ?x ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?h rdf:type ?x } } } . FILTER ( ?a > ?k ) }
Las Palmas de Gran Canaria
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Las Palmas de Gran Canaria
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) ?l WHERE { { ?l property:patron_saint ?v . ?l rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:holiday } UNION { ?l property:patron_saint ?v . ?l rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:common_name } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:Las_Palmas_de_Gran_Canaria property:patron_saint ?h . { VALUES ( ?x ) { ( ontology:holiday ) ( ontology:common_name ) } . ?h rdf:type ?x } } } . FILTER ( ?a > ?k ) }
[]
holiday common name administrative territorial entity
Q39519 Q220
SYSTEM
Brinzio, Rome
Q39519 Q220
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q11974
relation P417
type Q1445650
type Q502895
[ANSWERS] have more number of holidays or people as their patron saint than Las Palmas de Gran Canaria
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) ?l WHERE { { ?l property:P417 ?v . ?l rdf:type ontology:Q56061 . ?v rdf:type ontology:Q1445650 } UNION { ?l property:P417 ?v . ?l rdf:type ontology:Q56061 . ?v rdf:type ontology:Q502895 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:Q11974 property:P417 ?h . { VALUES ( ?x ) { ( ontology:Q1445650 ) ( ontology:Q502895 ) } . ?h rdf:type ?x } } } . FILTER ( ?a > ?k ) }
Brinzio Rome
Brinzio and Rome have more number of holidays or people as their patron saint than Las Palmas de Gran Canaria
Brinzio Rome
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Las Palmas de Gran Canaria
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) ?l WHERE { { ?l property:patron_saint ?v . ?l rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:holiday } UNION { ?l property:patron_saint ?v . ?l rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:common_name } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:Las_Palmas_de_Gran_Canaria property:patron_saint ?h . { VALUES ( ?x ) { ( ontology:holiday ) ( ontology:common_name ) } . ?h rdf:type ?x } } } . FILTER ( ?a > ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q244193
P417
Q1445650 Q502895 Q56061
USER
And how about Cagno?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q244193
relation P417
type Q1445650
type Q502895
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?u ) WHERE { { ?i property:P417 ?q . ?i rdf:type ontology:Q56061 . ?q rdf:type ontology:Q1445650 } UNION { ?i property:P417 ?q . ?q rdf:type ontology:Q502895 . ?i rdf:type ontology:Q56061 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { { { ?n rdf:type ontology:Q1445650 } UNION { ?n rdf:type ontology:Q502895 } } . resource:Q244193 property:P417 ?n } } . FILTER ( ?u > ?p ) }
Cagno
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Cagno
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?u ) WHERE { { ?i property:patron_saint ?q . ?i rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:holiday } UNION { ?i property:patron_saint ?q . ?q rdf:type ontology:common_name . ?i rdf:type ontology:administrative_territorial_entity } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { { { ?n rdf:type ontology:holiday } UNION { ?n rdf:type ontology:common_name } } . resource:Cagno property:patron_saint ?n } } . FILTER ( ?u > ?p ) }
[]
holiday common name administrative territorial entity
Q649 Q2807 Q490
SYSTEM
Moscow, Madrid, Milan
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q39519 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q220 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action greater
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
action count
action filter_multi_types
action find
entity Q244193
relation P417
type Q1445650
type Q502895
[ANSWERS]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?u ) WHERE { { ?i property:P417 ?q . ?i rdf:type ontology:Q56061 . ?q rdf:type ontology:Q1445650 } UNION { ?i property:P417 ?q . ?q rdf:type ontology:Q502895 . ?i rdf:type ontology:Q56061 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { { { ?n rdf:type ontology:Q1445650 } UNION { ?n rdf:type ontology:Q502895 } } . resource:Q244193 property:P417 ?n } } . FILTER ( ?u > ?p ) }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brinzio Brolo Kastritsa Platres Altrei Molista Mölten Rome Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
Moscow Madrid Milan
action greater
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action count
action filter_multi_types
action find
entity Cagno
relation patron saint
type holiday
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?q ) AS ?u ) WHERE { { ?i property:patron_saint ?q . ?i rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:holiday } UNION { ?i property:patron_saint ?q . ?q rdf:type ontology:common_name . ?i rdf:type ontology:administrative_territorial_entity } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?p ) WHERE { { { ?n rdf:type ontology:holiday } UNION { ?n rdf:type ontology:common_name } } . resource:Cagno property:patron_saint ?n } } . FILTER ( ?u > ?p ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2807
P138
Q17444909
USER
Which astronomical object type has that administrative territory as its toponym ?
(c(Q17444909),P138,Q2807)
action filter_type
action find_reverse
entity Q2807
relation P138
type Q17444909
[{'concept': 'Q17444909'}, 'P138', 'Q2807']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q17444909 . ?b property:P138 resource:Q2807 }
Madrid
action filter_type
action find_reverse
entity Madrid
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Madrid']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:astronomical_object_type . ?b property:named_after resource:Madrid }
[]
astronomical object type
Clarification for simple ques.
Q490
SYSTEM
Did you mean Milan ?
Q649 Q2807 Q490
(c(Q17444909),P138,Q649) (c(Q17444909),P138,Q2807) (c(Q17444909),P138,Q490)
[ANSWER]
[{'concept': 'Q17444909'}, 'P138', 'Q649'] [{'concept': 'Q17444909'}, 'P138', 'Q2807'] [{'concept': 'Q17444909'}, 'P138', 'Q490']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q17444909 . ?b property:P138 resource:Q2807 }
Moscow Madrid Milan
Did you mean Milan ?
Milan
[{'concept': 'astronomical object type'}, 'named after', 'Moscow'] [{'concept': 'astronomical object type'}, 'named after', 'Madrid'] [{'concept': 'astronomical object type'}, 'named after', 'Milan']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:astronomical_object_type . ?b property:named_after resource:Madrid }
[]
Simple Question (Coreferenced)
USER
No, I meant Madrid. Could you tell me the answer for that?
(c(Q17444909),P138,Q2807)
Q2807
[{'concept': 'Q17444909'}, 'P138', 'Q2807']
[{'concept': 'astronomical object type'}, 'named after', 'Madrid']
[]
Q2356020
SYSTEM
14967 Madrid
Q2356020
(c(Q17444909),P138,Q2807)
action filter_type
action find_reverse
entity Q2807
relation P138
type Q17444909
[ANSWER] has that administrative territory as its toponym
[{'concept': 'Q17444909'}, 'P138', 'Q2807']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q17444909 . ?b property:P138 resource:Q2807 }
14967 Madrid
14967 Madrid has that administrative territory as its toponym
14967 Madrid
action filter_type
action find_reverse
entity Madrid
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Madrid']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:astronomical_object_type . ?b property:named_after resource:Madrid }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q170322
P17
Q15617994
USER
Which administrative territory is Qingdao located in ?
(Q170322,P17,c(Q15617994))
action filter_type
action find
entity Q170322
relation P17
type Q15617994
['Q170322', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . resource:Q170322 property:P17 ?h }
Qingdao
action filter_type
action find
entity Qingdao
relation country
type designation for an administrative territorial entity
['Qingdao', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Qingdao property:country ?h }
[]
designation for an administrative territorial entity
Q148
SYSTEM
People's Republic of China
Q148
(Q170322,P17,c(Q15617994))
action filter_type
action find
entity Q170322
relation P17
type Q15617994
Qingdao is located in [ANSWER]
['Q170322', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q15617994 . resource:Q170322 property:P17 ?h }
People's Republic of China
Qingdao is located in People's Republic of China
People's Republic of China
action filter_type
action find
entity Qingdao
relation country
type designation for an administrative territorial entity
['Qingdao', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Qingdao property:country ?h }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1937302
Q15617994
USER
And what about Minna Township Stadium?
(Q1937302,P17,c(Q15617994))
action filter_type
action find
entity Q1937302
relation P17
type Q15617994
['Q1937302', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q1937302 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Minna Township Stadium
action filter_type
action find
entity Minna Township Stadium
relation country
type designation for an administrative territorial entity
['Minna Township Stadium', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Minna_Township_Stadium property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1033
SYSTEM
Nigeria
Q1033
(Q1937302,P17,c(Q15617994))
action filter_type
action find
entity Q1937302
relation P17
type Q15617994
[ANSWER]
['Q1937302', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q1937302 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Nigeria
Nigeria
action filter_type
action find
entity Minna Township Stadium
relation country
type designation for an administrative territorial entity
['Minna Township Stadium', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Minna_Township_Stadium property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]