Simple Question (Direct)
Simple Question
Q16026169
P20
Q20667921
USER
Where did Gaston Muller die ?
(Q16026169,P20,c(Q20667921))
action filter_type
action find
entity Q16026169
relation P20
type Q20667921
['Q16026169', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q20667921 . resource:Q16026169 property:P20 ?m }
Gaston Muller
action filter_type
action find
entity Gaston Muller
relation place of death
type type of french administrative division
['Gaston Muller', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:type_of_french_administrative_division . resource:Gaston_Muller property:place_of_death ?m }
[]
type of french administrative division
Q208889
SYSTEM
Saint-Ouen
Q208889
(Q16026169,P20,c(Q20667921))
action filter_type
action find
entity Q16026169
relation P20
type Q20667921
Gaston Muller died in [ANSWER]
['Q16026169', 'P20', {'concept': 'Q20667921'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q20667921 . resource:Q16026169 property:P20 ?m }
Saint-Ouen
Gaston Muller died in Saint-Ouen
Saint-Ouen
action filter_type
action find
entity Gaston Muller
relation place of death
type type of french administrative division
['Gaston Muller', 'place of death', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:type_of_french_administrative_division . resource:Gaston_Muller property:place_of_death ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q208889
P190
Q56061
USER
Which administrative territories are the sister cities of that french administrative division ?
(Q208889,P190,c(Q56061))
action filter_type
action find
entity Q208889
relation P190
type Q56061
['Q208889', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q208889 property:P190 ?f . ?f rdf:type ontology:Q56061 }
Saint-Ouen
action filter_type
action find
entity Saint-Ouen
relation sister city
type administrative territorial entity
['Saint-Ouen', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Saint-Ouen property:sister_city ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q19520 Q8621 Q47952
SYSTEM
Podolsk, Terni, Salford
Q19520 Q8621 Q47952
(Q208889,P190,c(Q56061))
action filter_type
action find
entity Q208889
relation P190
type Q56061
[ANSWERS] are the sister cities of that french administrative division
['Q208889', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { resource:Q208889 property:P190 ?f . ?f rdf:type ontology:Q56061 }
Podolsk Terni Salford
Podolsk, Terni and Salford are the sister cities of that french administrative division
Podolsk Terni Salford
action filter_type
action find
entity Saint-Ouen
relation sister city
type administrative territorial entity
['Saint-Ouen', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Saint-Ouen property:sister_city ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q170996 Q19520
P190
Q20667921
USER
Which french administrative divisions are sister town of Podolsk or Galați ?
OR((c(Q20667921),P190,Q19520), (c(Q20667921),P190,Q170996))
action filter_type
action union
action find_reverse
entity Q19520
relation P190
action find_reverse
entity Q170996
relation P190
type Q20667921
{'OR': [[{'concept': 'Q20667921'}, 'P190', 'Q19520'], [{'concept': 'Q20667921'}, 'P190', 'Q170996']]}
SELECT DISTINCT ?t WHERE { { { ?t property:P190 resource:Q19520 } UNION { ?t property:P190 resource:Q170996 } } . ?t rdf:type ontology:Q20667921 }
Galați Podolsk
action filter_type
action union
action find_reverse
entity Podolsk
relation sister city
action find_reverse
entity Galați
relation sister city
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'sister city', 'Podolsk'], [{'concept': 'type of french administrative division'}, 'sister city', 'Galați']]}
SELECT DISTINCT ?t WHERE { { { ?t property:sister_city resource:Podolsk } UNION { ?t property:sister_city resource:Galați } } . ?t rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q208889 Q207156
SYSTEM
Saint-Ouen, Pessac
Q208889 Q207156
OR((c(Q20667921),P190,Q19520), (c(Q20667921),P190,Q170996))
action filter_type
action union
action find_reverse
entity Q19520
relation P190
action find_reverse
entity Q170996
relation P190
type Q20667921
[ANSWERS] are sister town of Podolsk or Galați
{'OR': [[{'concept': 'Q20667921'}, 'P190', 'Q19520'], [{'concept': 'Q20667921'}, 'P190', 'Q170996']]}
SELECT DISTINCT ?t WHERE { { { ?t property:P190 resource:Q19520 } UNION { ?t property:P190 resource:Q170996 } } . ?t rdf:type ontology:Q20667921 }
Saint-Ouen Pessac
Saint-Ouen and Pessac are sister town of Podolsk or Galați
Saint-Ouen Pessac
action filter_type
action union
action find_reverse
entity Podolsk
relation sister city
action find_reverse
entity Galați
relation sister city
type type of french administrative division
{'OR': [[{'concept': 'type of french administrative division'}, 'sister city', 'Podolsk'], [{'concept': 'type of french administrative division'}, 'sister city', 'Galați']]}
SELECT DISTINCT ?t WHERE { { { ?t property:sister_city resource:Podolsk } UNION { ?t property:sister_city resource:Galați } } . ?t rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q208889
P740
Q874405 Q43229
USER
How many social groups and organizations originated at Saint-Ouen ?
(c(Q874405),P740,Q208889) (c(Q43229),P740,Q208889)
action count
action union
action filter_type
action find_reverse
entity Q208889
relation P740
type Q874405
action filter_type
action find_reverse
entity Q208889
relation P740
type Q43229
[{'concept': 'Q874405'}, 'P740', 'Q208889'] [{'concept': 'Q43229'}, 'P740', 'Q208889']
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { VALUES ( ?c ) { ( ontology:Q43229 ) ( ontology:Q874405 ) } . ?z rdf:type ?c }
Saint-Ouen
action count
action union
action filter_type
action find_reverse
entity Saint-Ouen
relation location of formation
type social group
action filter_type
action find_reverse
entity Saint-Ouen
relation location of formation
type organization
[{'concept': 'social group'}, 'location of formation', 'Saint-Ouen'] [{'concept': 'organization'}, 'location of formation', 'Saint-Ouen']
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { VALUES ( ?c ) { ( ontology:organization ) ( ontology:social_group ) } . ?z rdf:type ?c }
[]
social group organization
SYSTEM
1 social groups and 1 organizations
Q1393575 Q1393624
(c(Q874405),P740,Q208889) (c(Q43229),P740,Q208889)
action count
action union
action filter_type
action find_reverse
entity Q208889
relation P740
type Q874405
action filter_type
action find_reverse
entity Q208889
relation P740
type Q43229
[ANSWER]
[{'concept': 'Q874405'}, 'P740', 'Q208889'] [{'concept': 'Q43229'}, 'P740', 'Q208889']
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { VALUES ( ?c ) { ( ontology:Q43229 ) ( ontology:Q874405 ) } . ?z rdf:type ?c }
Faiveley Transport Somua
1 social groups and 1 organizations
action count
action union
action filter_type
action find_reverse
entity Saint-Ouen
relation location of formation
type social group
action filter_type
action find_reverse
entity Saint-Ouen
relation location of formation
type organization
[{'concept': 'social group'}, 'location of formation', 'Saint-Ouen'] [{'concept': 'organization'}, 'location of formation', 'Saint-Ouen']
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { VALUES ( ?c ) { ( ontology:organization ) ( ontology:social_group ) } . ?z rdf:type ?c }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q1048835 Q20667921
USER
Which political territories have atleast 1 french administrative division as their capital ?
(c(Q20667921),P1376,c(Q1048835))
action atleast
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
value 1
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?s >= 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?s ) WHERE { ?l property:P1376 ?x . ?x rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q20667921 } GROUP BY ?x } }
action atleast
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
value 1
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?s >= 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?s ) WHERE { ?l property:capital_of ?x . ?x rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:type_of_french_administrative_division } GROUP BY ?x } }
[]
political territorial entity type of french administrative division
Q34617 Q2485101 Q778266
SYSTEM
Saint Pierre and Miquelon, County of Chiny, County of Artois
Q1122980 Q2485101 Q34617 Q642314 Q1232887 Q778266
(c(Q20667921),P1376,c(Q1048835))
action atleast
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
value 1
[ANSWERS] have atleast 1 french administrative division as their capital
[{'concept': 'Q20667921'}, 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?s >= 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?s ) WHERE { ?l property:P1376 ?x . ?x rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q20667921 } GROUP BY ?x } }
Comtat Venaissin County of Chiny Saint Pierre and Miquelon County of Burgundy County of Savoy County of Artois
Saint Pierre and Miquelon, County of Chiny and County of Artois have atleast 1 french administrative division as their capital
Saint Pierre and Miquelon County of Chiny County of Artois
action atleast
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
value 1
[{'concept': 'type of french administrative division'}, 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?s >= 1 ) . { SELECT DISTINCT ?x ( COUNT ( ?l ) AS ?s ) WHERE { ?l property:capital_of ?x . ?x rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:type_of_french_administrative_division } GROUP BY ?x } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P1376
Q20667921
USER
How many french administrative divisions are the capital of that political territory ?
(c(Q20667921),P1376,Q778266)
[{'concept': 'Q20667921'}, 'P1376', 'Q778266']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P1376 resource:Q778266 . ?z rdf:type ontology:Q20667921 }
[{'concept': 'type of french administrative division'}, 'capital of', 'County of Artois']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:capital_of resource:County_of_Artois . ?z rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Quantitative|Count|Single entity type|Clarification
Q34617
SYSTEM
Did you mean Saint Pierre and Miquelon ?
(c(Q20667921),P1376,Q34617) (c(Q20667921),P1376,Q2485101) (c(Q20667921),P1376,Q778266)
[ANSWER]
[{'concept': 'Q20667921'}, 'P1376', 'Q34617'] [{'concept': 'Q20667921'}, 'P1376', 'Q2485101'] [{'concept': 'Q20667921'}, 'P1376', 'Q778266']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P1376 resource:Q778266 . ?z rdf:type ontology:Q20667921 }
Did you mean Saint Pierre and Miquelon ?
Saint Pierre and Miquelon
[{'concept': 'type of french administrative division'}, 'capital of', 'Saint Pierre and Miquelon'] [{'concept': 'type of french administrative division'}, 'capital of', 'County of Chiny'] [{'concept': 'type of french administrative division'}, 'capital of', 'County of Artois']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:capital_of resource:County_of_Artois . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant County of Artois. Could you tell me the answer for that?
(c(Q20667921),P1376,Q778266)
Q778266
[{'concept': 'Q20667921'}, 'P1376', 'Q778266']
[{'concept': 'type of french administrative division'}, 'capital of', 'County of Artois']
[]
SYSTEM
1
Q131329
(c(Q20667921),P1376,Q778266)
[ANSWER]
[{'concept': 'Q20667921'}, 'P1376', 'Q778266']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P1376 resource:Q778266 . ?z rdf:type ontology:Q20667921 }
Arras
1
[{'concept': 'type of french administrative division'}, 'capital of', 'County of Artois']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:capital_of resource:County_of_Artois . ?z rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q208889
P47
Q56061 Q20667921
USER
How many administrative territories and french administrative divisions are adjacent to Saint-Ouen ?
(Q208889,P47,c(Q56061)) (Q208889,P47,c(Q20667921))
action count
action union
action filter_type
action find
entity Q208889
relation P47
type Q56061
action filter_type
action find
entity Q208889
relation P47
type Q20667921
['Q208889', 'P47', {'concept': 'Q56061'}] ['Q208889', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { VALUES ( ?r ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } . ?a rdf:type ?r }
Saint-Ouen
action count
action union
action filter_type
action find
entity Saint-Ouen
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Saint-Ouen
relation shares border with
type type of french administrative division
['Saint-Ouen', 'shares border with', {'concept': 'administrative territorial entity'}] ['Saint-Ouen', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { VALUES ( ?r ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } . ?a rdf:type ?r }
[]
administrative territorial entity type of french administrative division
SYSTEM
1 administrative territories and 6 french administrative divisions
Q201982 Q160506 Q13103683 Q90 Q18199314 Q191415 Q733971
(Q208889,P47,c(Q56061)) (Q208889,P47,c(Q20667921))
action count
action union
action filter_type
action find
entity Q208889
relation P47
type Q56061
action filter_type
action find
entity Q208889
relation P47
type Q20667921
[ANSWER]
['Q208889', 'P47', {'concept': 'Q56061'}] ['Q208889', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { VALUES ( ?r ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } . ?a rdf:type ?r }
Clichy Saint-Denis La Chapelle Paris Montmartre Asnières-sur-Seine L'Île-Saint-Denis
1 administrative territories and 6 french administrative divisions
action count
action union
action filter_type
action find
entity Saint-Ouen
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Saint-Ouen
relation shares border with
type type of french administrative division
['Saint-Ouen', 'shares border with', {'concept': 'administrative territorial entity'}] ['Saint-Ouen', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?h ) WHERE { VALUES ( ?r ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } . ?a rdf:type ?r }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7078449 Q34617
P17
Q15617994
USER
Which administrative territories are Saint Pierre and Miquelon or Odziena Manor present in ?
OR((Q34617,P17,c(Q15617994)), (Q7078449,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q34617
relation P17
action find
entity Q7078449
relation P17
type Q15617994
{'OR': [['Q34617', 'P17', {'concept': 'Q15617994'}], ['Q7078449', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q34617 property:P17 ?y } UNION { resource:Q7078449 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
Odziena Manor Saint Pierre and Miquelon
action filter_type
action union
action find
entity Saint Pierre and Miquelon
relation country
action find
entity Odziena Manor
relation country
type designation for an administrative territorial entity
{'OR': [['Saint Pierre and Miquelon', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Odziena Manor', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Saint_Pierre_and_Miquelon property:country ?y } UNION { resource:Odziena_Manor property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q211 Q30
SYSTEM
France, Latvia, United States of America
Q142 Q211 Q30
OR((Q34617,P17,c(Q15617994)), (Q7078449,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q34617
relation P17
action find
entity Q7078449
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q34617', 'P17', {'concept': 'Q15617994'}], ['Q7078449', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q34617 property:P17 ?y } UNION { resource:Q7078449 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
France Latvia United States of America
Which administrative territories are Saint Pierre and Miquelon or Odziena Manor present in
France Latvia United States of America
action filter_type
action union
action find
entity Saint Pierre and Miquelon
relation country
action find
entity Odziena Manor
relation country
type designation for an administrative territorial entity
{'OR': [['Saint Pierre and Miquelon', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Odziena Manor', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Saint_Pierre_and_Miquelon property:country ?y } UNION { resource:Odziena_Manor property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q142 Q211 Q30
P47
Q15617994
USER
Which administrative territories are adjacent to those ones ?
(Q142,P47,c(Q15617994)) (Q211,P47,c(Q15617994)) (Q30,P47,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
['Q142', 'P47', {'concept': 'Q15617994'}] ['Q211', 'P47', {'concept': 'Q15617994'}] ['Q30', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?r ) { ( resource:Q142 ) ( resource:Q211 ) ( resource:Q30 ) } . ?d rdf:type ontology:Q15617994 . ?r property:P47 ?d }
France Latvia United States of America
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
['France', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Latvia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?r ) { ( resource:France ) ( resource:Latvia ) ( resource:United_States_of_America ) } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:shares_border_with ?d }
[]
designation for an administrative territorial entity
Q38 Q155 Q159
SYSTEM
Italy, Brazil, Russia
Q717 Q145 Q155 Q730 Q29999 Q228 Q32 Q31 Q29 Q39 Q38 Q159 Q191 Q184 Q37 Q36 Q702 Q804 Q159 Q683 Q96 Q786 Q241 Q17 Q710 Q717 Q678 Q790
(Q142,P47,c(Q15617994)) (Q211,P47,c(Q15617994)) (Q30,P47,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
[ANSWERS] are adjacent to those ones
['Q142', 'P47', {'concept': 'Q15617994'}] ['Q211', 'P47', {'concept': 'Q15617994'}] ['Q30', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?r ) { ( resource:Q142 ) ( resource:Q211 ) ( resource:Q30 ) } . ?d rdf:type ontology:Q15617994 . ?r property:P47 ?d }
Venezuela United Kingdom Brazil Suriname Kingdom of the Netherlands Andorra Luxembourg Belgium Spain Switzerland Italy Russia Estonia Belarus Lithuania Poland Federated States of Micronesia Panama Russia Samoa Mexico Dominican Republic Cuba Japan Kiribati Venezuela Tonga Haiti
Italy, Brazil and Russia are adjacent to those ones
Italy Brazil Russia
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
['France', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Latvia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?r ) { ( resource:France ) ( resource:Latvia ) ( resource:United_States_of_America ) } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:shares_border_with ?d }
[]