Simple Question (Direct)
Simple Question
Q21675
P1376
Q20667921
USER
Which french administrative division has Fontoy has its first city ?
(Q21675,P1376,c(Q20667921))
action filter_type
action find
entity Q21675
relation P1376
type Q20667921
['Q21675', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?j WHERE { resource:Q21675 property:P1376 ?j . ?j rdf:type ontology:Q20667921 }
Fontoy
action filter_type
action find
entity Fontoy
relation capital of
type type of french administrative division
['Fontoy', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?j WHERE { resource:Fontoy property:capital_of ?j . ?j rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1232218
SYSTEM
canton of Fontoy
Q1232218
(Q21675,P1376,c(Q20667921))
action filter_type
action find
entity Q21675
relation P1376
type Q20667921
[ANSWER]
['Q21675', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?j WHERE { resource:Q21675 property:P1376 ?j . ?j rdf:type ontology:Q20667921 }
canton of Fontoy
canton of Fontoy
action filter_type
action find
entity Fontoy
relation capital of
type type of french administrative division
['Fontoy', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?j WHERE { resource:Fontoy property:capital_of ?j . ?j rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1232218
P47
Q13220204
USER
Which administrative country subdivision is bordered by that french administrative division ?
(c(Q13220204),P47,Q1232218)
action filter_type
action find
entity Q1232218
relation P47
type Q13220204
[{'concept': 'Q13220204'}, 'P47', 'Q1232218']
SELECT DISTINCT ?u WHERE { resource:Q1232218 property:P47 ?u . ?u rdf:type ontology:Q13220204 }
canton of Fontoy
action filter_type
action find
entity canton of Fontoy
relation shares border with
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'canton of Fontoy']
SELECT DISTINCT ?u WHERE { resource:canton_of_Fontoy property:shares_border_with ?u . ?u rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q188283
SYSTEM
Canton of Esch-sur-Alzette
Q188283
(c(Q13220204),P47,Q1232218)
action filter_type
action find
entity Q1232218
relation P47
type Q13220204
[ANSWER]
[{'concept': 'Q13220204'}, 'P47', 'Q1232218']
SELECT DISTINCT ?u WHERE { resource:Q1232218 property:P47 ?u . ?u rdf:type ontology:Q13220204 }
Canton of Esch-sur-Alzette
Canton of Esch-sur-Alzette
action filter_type
action find
entity canton of Fontoy
relation shares border with
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'shares border with', 'canton of Fontoy']
SELECT DISTINCT ?u WHERE { resource:canton_of_Fontoy property:shares_border_with ?u . ?u rdf:type ontology:second-level_administrative_country_subdivision }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q188283 Q16010 Q5678887
P36
Q56061
USER
Is Esch-sur-Alzette and Hashcheh-ye Makineh the capital of Q188283 ?
(Q188283,P36,Q16010) (Q188283,P36,Q5678887)
action is_in
entity Q188283
action intersection
action find_reverse
entity Q16010
relation P36
action find_reverse
entity Q5678887
relation P36
['Q188283', 'P36', 'Q16010'] ['Q188283', 'P36', 'Q5678887']
ASK WHERE { resource:Q188283 property:P36 resource:Q16010 . resource:Q188283 property:P36 resource:Q5678887 }
Canton of Esch-sur-Alzette Esch-sur-Alzette Hashcheh-ye Makineh
action is_in
entity Canton of Esch-sur-Alzette
action intersection
action find_reverse
entity Esch-sur-Alzette
relation capital
action find_reverse
entity Hashcheh-ye Makineh
relation capital
['Canton of Esch-sur-Alzette', 'capital', 'Esch-sur-Alzette'] ['Canton of Esch-sur-Alzette', 'capital', 'Hashcheh-ye Makineh']
ASK WHERE { resource:Canton_of_Esch-sur-Alzette property:capital resource:Esch-sur-Alzette . resource:Canton_of_Esch-sur-Alzette property:capital resource:Hashcheh-ye_Makineh }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q188283,P36,Q16010) (Q188283,P36,Q5678887)
action is_in
entity Q188283
action intersection
action find_reverse
entity Q16010
relation P36
action find_reverse
entity Q5678887
relation P36
[ANSWER]
['Q188283', 'P36', 'Q16010'] ['Q188283', 'P36', 'Q5678887']
ASK WHERE { resource:Q188283 property:P36 resource:Q16010 . resource:Q188283 property:P36 resource:Q5678887 }
YES and NO respectively
action is_in
entity Canton of Esch-sur-Alzette
action intersection
action find_reverse
entity Esch-sur-Alzette
relation capital
action find_reverse
entity Hashcheh-ye Makineh
relation capital
['Canton of Esch-sur-Alzette', 'capital', 'Esch-sur-Alzette'] ['Canton of Esch-sur-Alzette', 'capital', 'Hashcheh-ye Makineh']
ASK WHERE { resource:Canton_of_Esch-sur-Alzette property:capital resource:Esch-sur-Alzette . resource:Canton_of_Esch-sur-Alzette property:capital resource:Hashcheh-ye_Makineh }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P159
Q20667921 Q895526 Q1269299
USER
How many french administrative divisions are the head office for around 1 authority organs or business organizations located ?
(c(Q895526)|c(Q1269299),P159,c(Q20667921))
action count
action approx
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q895526
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q1269299
value 1
[[{'concept': 'Q895526'}, {'concept': 'Q1269299'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?b ) WHERE { { ?r property:P159 ?h . ?h rdf:type ontology:Q20667921 . ?r rdf:type ontology:Q895526 } UNION { ?h rdf:type ontology:Q20667921 . ?r rdf:type ontology:Q1269299 . ?r property:P159 ?h } } GROUP BY ?h } }
action count
action approx
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type authority organ
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type type of business entity
value 1
[[{'concept': 'authority organ'}, {'concept': 'type of business entity'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?b ) WHERE { { ?r property:headquarters_location ?h . ?h rdf:type ontology:type_of_french_administrative_division . ?r rdf:type ontology:authority_organ } UNION { ?h rdf:type ontology:type_of_french_administrative_division . ?r rdf:type ontology:type_of_business_entity . ?r property:headquarters_location ?h } } GROUP BY ?h } }
[]
type of french administrative division authority organ type of business entity
SYSTEM
40
Q234743 Q207605 Q42807 Q1389275 Q6593 Q47465 Q212274 Q38380 Q42168 Q20441 Q334301 Q794124 Q6730 Q1064869 Q265657 Q213515 Q202565 Q627252 Q170507 Q648073 Q223692 Q189715 Q1058168 Q189153 Q242569 Q724403 Q272906 Q237303 Q208314 Q79815 Q245080 Q675950 Q48958 Q42716 Q13596 Q45797 Q268281 Q271407 Q836443 Q192982
(c(Q895526)|c(Q1269299),P159,c(Q20667921))
action count
action approx
action union
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q895526
action find_reverse_tuple_counts
relation P159
type Q20667921
type Q1269299
value 1
[ANSWER]
[[{'concept': 'Q895526'}, {'concept': 'Q1269299'}], 'P159', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?b ) WHERE { { ?r property:P159 ?h . ?h rdf:type ontology:Q20667921 . ?r rdf:type ontology:Q895526 } UNION { ?h rdf:type ontology:Q20667921 . ?r rdf:type ontology:Q1269299 . ?r property:P159 ?h } } GROUP BY ?h } }
Puteaux Noisy-le-Grand Nîmes Verneuil-en-Halatte Vannes Aix-en-Provence Nogent-sur-Marne Angers Clermont-Ferrand Quetigny Berck Saint-Rémy-lès-Chevreuse Perpignan Montesquieu Vert-le-Petit Ancenis Coutances Aubière Nanterre Saint-Marcel Cornillé Courbevoie Roissy-en-Brie Saint-Cloud Montgeron Hautot-le-Vatois Le Bourget Guyancourt Maisons-Alfort Mulhouse Bourbon-l'Archambault Grans Neuilly-sur-Seine Saint-Étienne Vaulx-en-Velin Dunkirk Lognes Orvault Chalezeule Cluny
40
action count
action approx
action union
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type authority organ
action find_reverse_tuple_counts
relation headquarters location
type type of french administrative division
type type of business entity
value 1
[[{'concept': 'authority organ'}, {'concept': 'type of business entity'}], 'headquarters location', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?b ) WHERE { { ?r property:headquarters_location ?h . ?h rdf:type ontology:type_of_french_administrative_division . ?r rdf:type ontology:authority_organ } UNION { ?h rdf:type ontology:type_of_french_administrative_division . ?r rdf:type ontology:type_of_business_entity . ?r property:headquarters_location ?h } } GROUP BY ?h } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6929789 Q5678887
P17
Q15617994
USER
Which administrative territories are Hashcheh-ye Makineh or Mrs. Jay's a part of ?
OR((Q5678887,P17,c(Q15617994)), (Q6929789,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5678887
relation P17
action find
entity Q6929789
relation P17
type Q15617994
{'OR': [['Q5678887', 'P17', {'concept': 'Q15617994'}], ['Q6929789', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { ?v property:P17 ?x . VALUES ( ?v ) { ( resource:Q5678887 ) ( resource:Q6929789 ) } } . ?x rdf:type ontology:Q15617994 }
Mrs. Jay's Hashcheh-ye Makineh
action filter_type
action union
action find
entity Hashcheh-ye Makineh
relation country
action find
entity Mrs. Jay's
relation country
type designation for an administrative territorial entity
{'OR': [['Hashcheh-ye Makineh', 'country', {'concept': 'designation for an administrative territorial entity'}], ["Mrs. Jay's", 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { ?v property:country ?x . VALUES ( ?v ) { ( resource:Hashcheh-ye_Makineh ) ( resource:Mrs._Jay's ) } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q794
SYSTEM
United States of America, Iran
Q30 Q794
OR((Q5678887,P17,c(Q15617994)), (Q6929789,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5678887
relation P17
action find
entity Q6929789
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q5678887', 'P17', {'concept': 'Q15617994'}], ['Q6929789', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { ?v property:P17 ?x . VALUES ( ?v ) { ( resource:Q5678887 ) ( resource:Q6929789 ) } } . ?x rdf:type ontology:Q15617994 }
United States of America Iran
United States of America Iran
action filter_type
action union
action find
entity Hashcheh-ye Makineh
relation country
action find
entity Mrs. Jay's
relation country
type designation for an administrative territorial entity
{'OR': [['Hashcheh-ye Makineh', 'country', {'concept': 'designation for an administrative territorial entity'}], ["Mrs. Jay's", 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { ?v property:country ?x . VALUES ( ?v ) { ( resource:Hashcheh-ye_Makineh ) ( resource:Mrs._Jay's ) } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q30 Q794
P530
Q1048835
USER
Which political territories have diplomatic relations with United States of America and Iran ?
(Q30,P530,c(Q1048835)) (Q794,P530,c(Q1048835))
action union
action filter_type
action find
entity Q30
relation P530
type Q1048835
action filter_type
action find
entity Q794
relation P530
type Q1048835
['Q30', 'P530', {'concept': 'Q1048835'}] ['Q794', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { ?e property:P530 ?k . VALUES ( ?e ) { ( resource:Q30 ) ( resource:Q794 ) } }
United States of America Iran
action union
action filter_type
action find
entity United States of America
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Iran
relation diplomatic relation
type political territorial entity
['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Iran', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { ?e property:diplomatic_relation ?k . VALUES ( ?e ) { ( resource:United_States_of_America ) ( resource:Iran ) } }
[]
political territorial entity
Q183 Q183 Q408
SYSTEM
Australia for 3rd, Germany for 1st, 2nd
Q183 Q408 Q16 Q183 Q408
(Q30,P530,c(Q1048835)) (Q794,P530,c(Q1048835))
action union
action filter_type
action find
entity Q30
relation P530
type Q1048835
action filter_type
action find
entity Q794
relation P530
type Q1048835
[ANSWERS]
['Q30', 'P530', {'concept': 'Q1048835'}] ['Q794', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { ?e property:P530 ?k . VALUES ( ?e ) { ( resource:Q30 ) ( resource:Q794 ) } }
Germany Australia Canada Germany Australia
Germany Germany Australia
action union
action filter_type
action find
entity United States of America
relation diplomatic relation
type political territorial entity
action filter_type
action find
entity Iran
relation diplomatic relation
type political territorial entity
['United States of America', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Iran', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { ?e property:diplomatic_relation ?k . VALUES ( ?e ) { ( resource:United_States_of_America ) ( resource:Iran ) } }
[]