Simple Question (Direct)
Simple Question
Q3451548
P47
Q34442
USER
Which roads share border with rue de la Py ?
(Q3451548,P47,c(Q34442))
action filter_type
action find
entity Q3451548
relation P47
type Q34442
['Q3451548', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ?r WHERE { resource:Q3451548 property:P47 ?r . ?r rdf:type ontology:Q34442 }
rue de la Py
action filter_type
action find
entity rue de la Py
relation shares border with
type road
['rue de la Py', 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ?r WHERE { resource:rue_de_la_Py property:shares_border_with ?r . ?r rdf:type ontology:road }
[]
road
Q3450554 Q3452148 Q3447111
SYSTEM
rue de Bagnolet, rue du Capitaine-Ferber, rue Belgrand
Q3452700 Q3450554 Q3448782 Q3452148 Q3447111 Q3449080
(Q3451548,P47,c(Q34442))
action filter_type
action find
entity Q3451548
relation P47
type Q34442
[ANSWERS] share border with rue de la Py
['Q3451548', 'P47', {'concept': 'Q34442'}]
SELECT DISTINCT ?r WHERE { resource:Q3451548 property:P47 ?r . ?r rdf:type ontology:Q34442 }
rue Émile-Pierre-Casel rue de Bagnolet rue Le Bua rue du Capitaine-Ferber rue Belgrand rue Martin-Garat
Rue de Bagnolet, rue du Capitaine-Ferber and rue Belgrand share border with rue de la Py
rue de Bagnolet rue du Capitaine-Ferber rue Belgrand
action filter_type
action find
entity rue de la Py
relation shares border with
type road
['rue de la Py', 'shares border with', {'concept': 'road'}]
SELECT DISTINCT ?r WHERE { resource:rue_de_la_Py property:shares_border_with ?r . ?r rdf:type ontology:road }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3450554 Q3452148 Q3447111
P47
Q34442
USER
Which roads share border with those ones ?
(c(Q34442),P47,Q3450554) (c(Q34442),P47,Q3452148) (c(Q34442),P47,Q3447111)
action filter_type
action find
entity prev_answer
relation P47
type Q34442
[{'concept': 'Q34442'}, 'P47', 'Q3450554'] [{'concept': 'Q34442'}, 'P47', 'Q3452148'] [{'concept': 'Q34442'}, 'P47', 'Q3447111']
SELECT DISTINCT ?w WHERE { ?g property:P47 ?w . ?w rdf:type ontology:Q34442 . VALUES ( ?g ) { ( resource:Q3452700 ) ( resource:Q3450554 ) ( resource:Q3448782 ) } }
rue de Bagnolet rue du Capitaine-Ferber rue Belgrand
action filter_type
action find
entity prev_answer
relation shares border with
type road
[{'concept': 'road'}, 'shares border with', 'rue de Bagnolet'] [{'concept': 'road'}, 'shares border with', 'rue du Capitaine-Ferber'] [{'concept': 'road'}, 'shares border with', 'rue Belgrand']
SELECT DISTINCT ?w WHERE { ?g property:shares_border_with ?w . ?w rdf:type ontology:road . VALUES ( ?g ) { ( resource:rue_Émile-Pierre-Casel ) ( resource:rue_de_Bagnolet ) ( resource:rue_Le_Bua ) } }
[]
road
Q3451997 Q3450653 Q3449455
SYSTEM
rue des Pyrénées, rue de Charonne, rue Pelleport
Q3448868 Q3451997 Q3450809 Q3451894 Q3449845 Q3451942 Q3449574 Q3451981 Q3558558 Q3558711 Q3449455 Q3449228 Q3450653 Q2974624 Q3451661 Q3447915 Q3451548 Q3451567 Q2423151 Q3451921 Q3446918 Q3449455 Q3447111 Q3452403 Q3451548 Q3449110 Q3449538 Q3452171 Q3452700 Q3452148 Q3451368 Q3452389 Q3449455 Q3451548 Q3449080
(c(Q34442),P47,Q3450554) (c(Q34442),P47,Q3452148) (c(Q34442),P47,Q3447111)
action filter_type
action find
entity prev_answer
relation P47
type Q34442
[ANSWERS] share border with those ones
[{'concept': 'Q34442'}, 'P47', 'Q3450554'] [{'concept': 'Q34442'}, 'P47', 'Q3452148'] [{'concept': 'Q34442'}, 'P47', 'Q3447111']
SELECT DISTINCT ?w WHERE { ?g property:P47 ?w . ?w rdf:type ontology:Q34442 . VALUES ( ?g ) { ( resource:Q3452700 ) ( resource:Q3450554 ) ( resource:Q3448782 ) } }
rue Ligner rue des Pyrénées rue de Lesseps rue des Lyanes rue Saint-Blaise rue des Orteaux rue Planchat rue des Prairies villa Godin villa Riberolle rue Pelleport rue Monte-Cristo rue de Charonne cité Adrienne rue des Balkans rue Florian rue de la Py rue de la Réunion rue du Capitaine-Marchal rue des Montibœufs rue Alphonse-Penaud rue Pelleport rue Belgrand rue du Lieutenant-Chauré rue de la Py rue Maurice-Berteaux rue Pierre-Mouillard rue du Cher rue Émile-Pierre-Casel rue du Capitaine-Ferber rue de la Chine rue du Japon rue Pelleport rue de la Py rue Martin-Garat
Rue des Pyrénées, rue de Charonne and rue Pelleport share border with those ones
rue des Pyrénées rue de Charonne rue Pelleport
action filter_type
action find
entity prev_answer
relation shares border with
type road
[{'concept': 'road'}, 'shares border with', 'rue de Bagnolet'] [{'concept': 'road'}, 'shares border with', 'rue du Capitaine-Ferber'] [{'concept': 'road'}, 'shares border with', 'rue Belgrand']
SELECT DISTINCT ?w WHERE { ?g property:shares_border_with ?w . ?w rdf:type ontology:road . VALUES ( ?g ) { ( resource:rue_Émile-Pierre-Casel ) ( resource:rue_de_Bagnolet ) ( resource:rue_Le_Bua ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3450653
P669
Q41176
USER
Which building is located on that road ?
(c(Q41176),P669,Q3450653)
action filter_type
action find_reverse
entity Q3450653
relation P669
type Q41176
[{'concept': 'Q41176'}, 'P669', 'Q3450653']
SELECT DISTINCT ?p WHERE { ?p property:P669 resource:Q3450653 . ?p rdf:type ontology:Q41176 }
rue de Charonne
action filter_type
action find_reverse
entity rue de Charonne
relation located on street
type building
[{'concept': 'building'}, 'located on street', 'rue de Charonne']
SELECT DISTINCT ?p WHERE { ?p property:located_on_street resource:rue_de_Charonne . ?p rdf:type ontology:building }
[]
building
Clarification for simple ques.
Q3449455
SYSTEM
Did you mean rue Pelleport ?
Q3451997 Q3450653 Q3449455
(c(Q41176),P669,Q3451997) (c(Q41176),P669,Q3450653) (c(Q41176),P669,Q3449455)
[ANSWER]
[{'concept': 'Q41176'}, 'P669', 'Q3451997'] [{'concept': 'Q41176'}, 'P669', 'Q3450653'] [{'concept': 'Q41176'}, 'P669', 'Q3449455']
SELECT DISTINCT ?p WHERE { ?p property:P669 resource:Q3450653 . ?p rdf:type ontology:Q41176 }
rue des Pyrénées rue de Charonne rue Pelleport
Did you mean rue Pelleport ?
rue Pelleport
[{'concept': 'building'}, 'located on street', 'rue des Pyrénées'] [{'concept': 'building'}, 'located on street', 'rue de Charonne'] [{'concept': 'building'}, 'located on street', 'rue Pelleport']
SELECT DISTINCT ?p WHERE { ?p property:located_on_street resource:rue_de_Charonne . ?p rdf:type ontology:building }
[]
Simple Question (Coreferenced)
USER
No, I meant rue de Charonne. Could you tell me the answer for that?
(c(Q41176),P669,Q3450653)
Q3450653
[{'concept': 'Q41176'}, 'P669', 'Q3450653']
[{'concept': 'building'}, 'located on street', 'rue de Charonne']
[]
Q3374828
SYSTEM
Pension Belhomme
Q3374828
(c(Q41176),P669,Q3450653)
action filter_type
action find_reverse
entity Q3450653
relation P669
type Q41176
[ANSWER] is located on that road
[{'concept': 'Q41176'}, 'P669', 'Q3450653']
SELECT DISTINCT ?p WHERE { ?p property:P669 resource:Q3450653 . ?p rdf:type ontology:Q41176 }
Pension Belhomme
Pension Belhomme is located on that road
Pension Belhomme
action filter_type
action find_reverse
entity rue de Charonne
relation located on street
type building
[{'concept': 'building'}, 'located on street', 'rue de Charonne']
SELECT DISTINCT ?p WHERE { ?p property:located_on_street resource:rue_de_Charonne . ?p rdf:type ontology:building }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3451997
P17
Q15617994
USER
Which administrative territory does rue des Pyrénées belong to ?
(Q3451997,P17,c(Q15617994))
action filter_type
action find
entity Q3451997
relation P17
type Q15617994
['Q3451997', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q3451997 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
rue des Pyrénées
action filter_type
action find
entity rue des Pyrénées
relation country
type designation for an administrative territorial entity
['rue des Pyrénées', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:rue_des_Pyrénées property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3451997,P17,c(Q15617994))
action filter_type
action find
entity Q3451997
relation P17
type Q15617994
Rue des Pyrénées belongs to the [ANSWER]
['Q3451997', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q3451997 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
France
Rue des Pyrénées belongs to the France
France
action filter_type
action find
entity rue des Pyrénées
relation country
type designation for an administrative territorial entity
['rue des Pyrénées', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:rue_des_Pyrénées property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q26507375
Q15617994
USER
And how about Rowe Farmhouse?
(Q26507375,P17,c(Q15617994))
action filter_type
action find
entity Q26507375
relation P17
type Q15617994
['Q26507375', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q26507375 property:P17 ?t }
Rowe Farmhouse
action filter_type
action find
entity Rowe Farmhouse
relation country
type designation for an administrative territorial entity
['Rowe Farmhouse', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Rowe_Farmhouse property:country ?t }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q26507375,P17,c(Q15617994))
action filter_type
action find
entity Q26507375
relation P17
type Q15617994
[ANSWER]
['Q26507375', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . resource:Q26507375 property:P17 ?t }
United Kingdom
United Kingdom
action filter_type
action find
entity Rowe Farmhouse
relation country
type designation for an administrative territorial entity
['Rowe Farmhouse', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Rowe_Farmhouse property:country ?t }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with max number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?a ) WHERE { ?l property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?l } . FILTER ( ?a = ?p ) . { SELECT DISTINCT ( MAX ( ?s ) AS ?p ) { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?s ) WHERE { ?r property:P530 ?k . ?r rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?r } } }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?a ) WHERE { ?l property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . FILTER ( ?a = ?p ) . { SELECT DISTINCT ( MAX ( ?s ) AS ?p ) { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?s ) WHERE { ?r property:diplomatic_relation ?k . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] have diplomatic relationships with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?a ) WHERE { ?l property:P530 ?c . ?c rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?l } . FILTER ( ?a = ?p ) . { SELECT DISTINCT ( MAX ( ?s ) AS ?p ) { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?s ) WHERE { ?r property:P530 ?k . ?r rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?r } } }
Italy
Italy have diplomatic relationships with max number of administrative territories
Italy
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?a ) WHERE { ?l property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . FILTER ( ?a = ?p ) . { SELECT DISTINCT ( MAX ( ?s ) AS ?p ) { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?s ) WHERE { ?r property:diplomatic_relation ?k . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P463
Q484652 Q56061
USER
How many international organizations or administrative territories had that administrative territory as their member ?
(Q38,P463,c(Q484652)) (Q38,P463,c(Q56061)) (Q38,P463,c(Q484652)) (Q38,P463,c(Q56061))
action count
action union
action filter_type
action find
entity Q38
relation P463
type Q484652
action filter_type
action find
entity Q38
relation P463
type Q56061
['Q38', 'P463', {'concept': 'Q484652'}] ['Q38', 'P463', {'concept': 'Q56061'}] ['Q38', 'P463', {'concept': 'Q484652'}] ['Q38', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { resource:Q38 property:P463 ?r . ?r rdf:type ontology:Q484652 } UNION { resource:Q38 property:P463 ?r . ?r rdf:type ontology:Q56061 } }
action count
action union
action filter_type
action find
entity Italy
relation member of
type international organization
action filter_type
action find
entity Italy
relation member of
type administrative territorial entity
['Italy', 'member of', {'concept': 'international organization'}] ['Italy', 'member of', {'concept': 'administrative territorial entity'}] ['Italy', 'member of', {'concept': 'international organization'}] ['Italy', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { resource:Italy property:member_of ?r . ?r rdf:type ontology:international_organization } UNION { resource:Italy property:member_of ?r . ?r rdf:type ontology:administrative_territorial_entity } }
[]
international organization administrative territorial entity
SYSTEM
27
Q81299 Q458 Q19771 Q1065 Q826700 Q54129 Q1480793 Q47488 Q1411881 Q17495 Q192177 Q7184 Q42262 Q472311 Q37143 Q605326 Q170424 Q188822 Q176815 Q182000 Q8475 Q233611 Q201054 Q7804 Q842490 Q1045198 Q1043527
(Q38,P463,c(Q484652)) (Q38,P463,c(Q56061)) (Q38,P463,c(Q484652)) (Q38,P463,c(Q56061))
action count
action union
action filter_type
action find
entity Q38
relation P463
type Q484652
action filter_type
action find
entity Q38
relation P463
type Q56061
[ANSWER]
['Q38', 'P463', {'concept': 'Q484652'}] ['Q38', 'P463', {'concept': 'Q56061'}] ['Q38', 'P463', {'concept': 'Q484652'}] ['Q38', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { resource:Q38 property:P463 ?r . ?r rdf:type ontology:Q484652 } UNION { resource:Q38 property:P463 ?r . ?r rdf:type ontology:Q56061 } }
Organization for Security and Co-operation in Europe European Union G20 United Nations International Energy Agency International Labour Organization Nuclear Suppliers Group International Criminal Court Group of Ten Universal Postal Union Union for the Mediterranean North Atlantic Treaty Organisation European Space Agency International Organization for Migration G8 World Customs Organization World Meteorological Organization Asian Development Bank Inter-Parliamentary Union United Nations Conference on Trade and Development Interpol International Hydrographic Organization International Maritime Organization International Monetary Fund Organisation for the Prohibition of Chemical Weapons Permanent Court of Arbitration Multilateral Investment Guarantee Agency
27
action count
action union
action filter_type
action find
entity Italy
relation member of
type international organization
action filter_type
action find
entity Italy
relation member of
type administrative territorial entity
['Italy', 'member of', {'concept': 'international organization'}] ['Italy', 'member of', {'concept': 'administrative territorial entity'}] ['Italy', 'member of', {'concept': 'international organization'}] ['Italy', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { { resource:Italy property:member_of ?r . ?r rdf:type ontology:international_organization } UNION { resource:Italy property:member_of ?r . ?r rdf:type ontology:administrative_territorial_entity } }
[]