Simple Question (Direct)
Simple Question
Q593165
P19
Q515
USER
Where was Flavius Stoican born ?
(Q593165,P19,c(Q515))
action filter_type
action find
entity Q593165
relation P19
type Q515
['Q593165', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { resource:Q593165 property:P19 ?l . ?l rdf:type ontology:Q515 }
Flavius Stoican
action filter_type
action find
entity Flavius Stoican
relation place of birth
type city
['Flavius Stoican', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { resource:Flavius_Stoican property:place_of_birth ?l . ?l rdf:type ontology:city }
[]
city
Q629776
SYSTEM
Vânju Mare
Q629776
(Q593165,P19,c(Q515))
action filter_type
action find
entity Q593165
relation P19
type Q515
Flavius Stoican was born in [ANSWER]
['Q593165', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { resource:Q593165 property:P19 ?l . ?l rdf:type ontology:Q515 }
Vânju Mare
Flavius Stoican was born in Vânju Mare
Vânju Mare
action filter_type
action find
entity Flavius Stoican
relation place of birth
type city
['Flavius Stoican', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { resource:Flavius_Stoican property:place_of_birth ?l . ?l rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q629776
P1376
Q486972
USER
Which human settlement is the county seat for that city ?
(c(Q486972),P1376,Q629776)
action filter_type
action find_reverse
entity Q629776
relation P1376
type Q486972
[{'concept': 'Q486972'}, 'P1376', 'Q629776']
SELECT DISTINCT ?d WHERE { ?d property:P1376 resource:Q629776 . ?d rdf:type ontology:Q486972 }
Vânju Mare
action filter_type
action find_reverse
entity Vânju Mare
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', 'Vânju Mare']
SELECT DISTINCT ?d WHERE { ?d property:capital_of resource:Vânju_Mare . ?d rdf:type ontology:human_settlement }
[]
human settlement
Q16898412
SYSTEM
Vânju Mare
Q16898412
(c(Q486972),P1376,Q629776)
action filter_type
action find_reverse
entity Q629776
relation P1376
type Q486972
[ANSWER] is the county seat for that city
[{'concept': 'Q486972'}, 'P1376', 'Q629776']
SELECT DISTINCT ?d WHERE { ?d property:P1376 resource:Q629776 . ?d rdf:type ontology:Q486972 }
Vânju Mare
Vânju Mare is the county seat for that city
Vânju Mare
action filter_type
action find_reverse
entity Vânju Mare
relation capital of
type human settlement
[{'concept': 'human settlement'}, 'capital of', 'Vânju Mare']
SELECT DISTINCT ?d WHERE { ?d property:capital_of resource:Vânju_Mare . ?d rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q629776
P36
Q486972
USER
Which human settlement is called the capital of that city ?
(Q16898412,P36,c(Q486972))
action filter_type
action find
entity Q629776
relation P36
type Q486972
['Q16898412', 'P36', {'concept': 'Q486972'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q486972 . resource:Q629776 property:P36 ?b }
Vânju Mare
action filter_type
action find
entity Vânju Mare
relation capital
type human settlement
['Vânju Mare', 'capital', {'concept': 'human settlement'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:human_settlement . resource:Vânju_Mare property:capital ?b }
[]
human settlement
Q16898412
SYSTEM
Vânju Mare
Q16898412
(Q16898412,P36,c(Q486972))
action filter_type
action find
entity Q629776
relation P36
type Q486972
Mare [ANSWER] is called the capital of that city
['Q16898412', 'P36', {'concept': 'Q486972'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q486972 . resource:Q629776 property:P36 ?b }
Vânju Mare
Mare Vânju Mare is called the capital of that city
Vânju Mare
action filter_type
action find
entity Vânju Mare
relation capital
type human settlement
['Vânju Mare', 'capital', {'concept': 'human settlement'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:human_settlement . resource:Vânju_Mare property:capital ?b }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q16898412 Q12129665
P1383
Q515
USER
How many cities supervises Vânju Mare or Chintinici ?
(c(Q515),P1383,Q16898412) (c(Q515),P1383,Q12129665)
action count
action union
action filter_type
action find_reverse
entity Q16898412
relation P1383
type Q515
action filter_type
action find_reverse
entity Q12129665
relation P1383
type Q515
[{'concept': 'Q515'}, 'P1383', 'Q16898412'] [{'concept': 'Q515'}, 'P1383', 'Q12129665']
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { VALUES ( ?x ) { ( resource:Q16898412 ) ( resource:Q12129665 ) } . ?u property:P1383 ?x }
Vânju Mare Chintinici
action count
action union
action filter_type
action find_reverse
entity Vânju Mare
relation contains settlement
type city
action filter_type
action find_reverse
entity Chintinici
relation contains settlement
type city
[{'concept': 'city'}, 'contains settlement', 'Vânju Mare'] [{'concept': 'city'}, 'contains settlement', 'Chintinici']
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { VALUES ( ?x ) { ( resource:Vânju_Mare ) ( resource:Chintinici ) } . ?u property:contains_settlement ?x }
[]
city
SYSTEM
2
Q629776 Q275642
(c(Q515),P1383,Q16898412) (c(Q515),P1383,Q12129665)
action count
action union
action filter_type
action find_reverse
entity Q16898412
relation P1383
type Q515
action filter_type
action find_reverse
entity Q12129665
relation P1383
type Q515
[ANSWER]
[{'concept': 'Q515'}, 'P1383', 'Q16898412'] [{'concept': 'Q515'}, 'P1383', 'Q12129665']
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { VALUES ( ?x ) { ( resource:Q16898412 ) ( resource:Q12129665 ) } . ?u property:P1383 ?x }
Vânju Mare Roznov
2
action count
action union
action filter_type
action find_reverse
entity Vânju Mare
relation contains settlement
type city
action filter_type
action find_reverse
entity Chintinici
relation contains settlement
type city
[{'concept': 'city'}, 'contains settlement', 'Vânju Mare'] [{'concept': 'city'}, 'contains settlement', 'Chintinici']
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { VALUES ( ?x ) { ( resource:Vânju_Mare ) ( resource:Chintinici ) } . ?u property:contains_settlement ?x }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P190
Q20667921 Q56061 Q515
USER
How many cities are a sister city of exactly 20 french administrative divisions and administrative territories ?
(c(Q515),P190,c(Q20667921)|c(Q56061))
action count
action equal
action union
action find_tuple_counts
relation P190
type Q515
type Q20667921
action find_tuple_counts
relation P190
type Q515
type Q56061
value 20
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q20667921'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) ?x WHERE { VALUES ( ?i ) { ( ontology:Q20667921 ) ( ontology:Q56061 ) } . ?f rdf:type ?i } GROUP BY ?x } . FILTER ( ?e = 20 ) }
action count
action equal
action union
action find_tuple_counts
relation sister city
type city
type type of french administrative division
action find_tuple_counts
relation sister city
type city
type administrative territorial entity
value 20
[{'concept': 'city'}, 'sister city', [{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) ?x WHERE { VALUES ( ?i ) { ( ontology:type_of_french_administrative_division ) ( ontology:administrative_territorial_entity ) } . ?f rdf:type ?i } GROUP BY ?x } . FILTER ( ?e = 20 ) }
[]
type of french administrative division administrative territorial entity city
SYSTEM
2
Q19660 Q1533
(c(Q515),P190,c(Q20667921)|c(Q56061))
action count
action equal
action union
action find_tuple_counts
relation P190
type Q515
type Q20667921
action find_tuple_counts
relation P190
type Q515
type Q56061
value 20
[ANSWER]
[{'concept': 'Q515'}, 'P190', [{'concept': 'Q20667921'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) ?x WHERE { VALUES ( ?i ) { ( ontology:Q20667921 ) ( ontology:Q56061 ) } . ?f rdf:type ?i } GROUP BY ?x } . FILTER ( ?e = 20 ) }
Bucharest Caracas
2
action count
action equal
action union
action find_tuple_counts
relation sister city
type city
type type of french administrative division
action find_tuple_counts
relation sister city
type city
type administrative territorial entity
value 20
[{'concept': 'city'}, 'sister city', [{'concept': 'type of french administrative division'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) ?x WHERE { VALUES ( ?i ) { ( ontology:type_of_french_administrative_division ) ( ontology:administrative_territorial_entity ) } . ?f rdf:type ?i } GROUP BY ?x } . FILTER ( ?e = 20 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q24238489 Q16898412
P19 P1376
Q515
USER
Which cities have Vânju Mare as their capital or are the birthplace of Dan Condrea ?
OR((Q16898412,P1376,c(Q515)), (Q24238489,P19,c(Q515)))
action filter_type
action union
action find
entity Q16898412
relation P1376
action find
entity Q24238489
relation P19
type Q515
{'OR': [['Q16898412', 'P1376', {'concept': 'Q515'}], ['Q24238489', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q16898412 property:P1376 ?a } UNION { resource:Q24238489 property:P19 ?a } } . ?a rdf:type ontology:Q515 }
Dan Condrea Vânju Mare
action filter_type
action union
action find
entity Vânju Mare
relation capital of
action find
entity Dan Condrea
relation place of birth
type city
{'OR': [['Vânju Mare', 'capital of', {'concept': 'city'}], ['Dan Condrea', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Vânju_Mare property:capital_of ?a } UNION { resource:Dan_Condrea property:place_of_birth ?a } } . ?a rdf:type ontology:city }
[]
city
Q629776 Q19660
SYSTEM
Vânju Mare, Bucharest
Q629776 Q19660
OR((Q16898412,P1376,c(Q515)), (Q24238489,P19,c(Q515)))
action filter_type
action union
action find
entity Q16898412
relation P1376
action find
entity Q24238489
relation P19
type Q515
Vânju have Mare as their capital or are the birthplace of Dan Condrea in [ANSWERS]
{'OR': [['Q16898412', 'P1376', {'concept': 'Q515'}], ['Q24238489', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q16898412 property:P1376 ?a } UNION { resource:Q24238489 property:P19 ?a } } . ?a rdf:type ontology:Q515 }
Vânju Mare Bucharest
Vânju have Mare as their capital or are the birthplace of Dan Condrea in Vânju Mare and Bucharest
Vânju Mare Bucharest
action filter_type
action union
action find
entity Vânju Mare
relation capital of
action find
entity Dan Condrea
relation place of birth
type city
{'OR': [['Vânju Mare', 'capital of', {'concept': 'city'}], ['Dan Condrea', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Vânju_Mare property:capital_of ?a } UNION { resource:Dan_Condrea property:place_of_birth ?a } } . ?a rdf:type ontology:city }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P1427
Q515 Q878123 Q22348500
USER
Which cities are the start points of approximately the same number of racings or cycling race classes as that city ?
(c(Q878123)|c(Q22348500),P1427,c(Q515))
[[{'concept': 'Q878123'}, {'concept': 'Q22348500'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { ?j property:P1427 ?y . VALUES ( ?j ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q878123 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q22348500 }
[[{'concept': 'racing'}, {'concept': 'cycling race class defined by the International Cycling Union'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { ?j property:start_point ?y . VALUES ( ?j ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:racing . ?y rdf:type ontology:city . ?x rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union }
[]
city racing cycling race class defined by the International Cycling Union
Comparative|More/Less|Mult. entity type|Clarification
Q19660
SYSTEM
Did you mean Bucharest ?
(c(Q878123)|c(Q22348500),P1427,c(Q515))
[ANSWER]
[[{'concept': 'Q878123'}, {'concept': 'Q22348500'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { ?j property:P1427 ?y . VALUES ( ?j ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:Q878123 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q22348500 }
Did you mean Bucharest ?
Bucharest
[[{'concept': 'racing'}, {'concept': 'cycling race class defined by the International Cycling Union'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { ?j property:start_point ?y . VALUES ( ?j ) { ( ?z ) ( ?x ) } } . ?z rdf:type ontology:racing . ?y rdf:type ontology:city . ?x rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q878123)|c(Q22348500),P1427,c(Q515))
[[{'concept': 'Q878123'}, {'concept': 'Q22348500'}], 'P1427', {'concept': 'Q515'}]
[[{'concept': 'racing'}, {'concept': 'cycling race class defined by the International Cycling Union'}], 'start point', {'concept': 'city'}]
[]
Q1486 Q1794 Q19660
SYSTEM
Buenos Aires, Frankfurt, Bucharest
Q505208 Q1794 Q117676 Q840610 Q182378 Q19660 Q1486 Q2978 Q1761 Q1854 Q235 Q17042 Q3861 Q16666
(c(Q878123)|c(Q22348500),P1427,c(Q515))
[ANSWERS] are the start points of approximately the same number of racings or cycling race classes as that city
[[{'concept': 'Q878123'}, {'concept': 'Q22348500'}], 'P1427', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q878123 . ?y rdf:type ontology:Q7930989 . ?x rdf:type ontology:Q22348500 }
Ouarzazate Frankfurt Viseu Yamanashi Putrajaya Bucharest Buenos Aires Regensburg Dublin Ho Chi Minh City Monaco Oakland Doha Nanjing
Buenos Aires, Frankfurt and Bucharest are the start points of approximately the same number of racings or cycling race classes as that city
Buenos Aires Frankfurt Bucharest
[[{'concept': 'racing'}, {'concept': 'cycling race class defined by the International Cycling Union'}], 'start point', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:racing . ?y rdf:type ontology:city . ?x rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q24008229 Q12129665
P6 P1383
Q515
USER
Which cities supervises Chintinici and have Ionel Ciubotaru as their head of government ?
AND((c(Q515),P1383,Q12129665), (c(Q515),P6,Q24008229))
action filter_type
action intersection
action find_reverse
entity Q12129665
relation P1383
action find_reverse
entity Q24008229
relation P6
type Q515
{'AND': [[{'concept': 'Q515'}, 'P1383', 'Q12129665'], [{'concept': 'Q515'}, 'P6', 'Q24008229']]}
SELECT DISTINCT ?e WHERE { ?e property:P1383 resource:Q12129665 . ?e property:P6 resource:Q24008229 . ?e rdf:type ontology:Q515 }
Ionel Ciubotaru Chintinici
action filter_type
action intersection
action find_reverse
entity Chintinici
relation contains settlement
action find_reverse
entity Ionel Ciubotaru
relation head of government
type city
{'AND': [[{'concept': 'city'}, 'contains settlement', 'Chintinici'], [{'concept': 'city'}, 'head of government', 'Ionel Ciubotaru']]}
SELECT DISTINCT ?e WHERE { ?e property:contains_settlement resource:Chintinici . ?e property:head_of_government resource:Ionel_Ciubotaru . ?e rdf:type ontology:city }
[]
city
Q275642
SYSTEM
Roznov
Q275642
AND((c(Q515),P1383,Q12129665), (c(Q515),P6,Q24008229))
action filter_type
action intersection
action find_reverse
entity Q12129665
relation P1383
action find_reverse
entity Q24008229
relation P6
type Q515
[ANSWER] supervises Chintinici and have Ionel Ciubotaru as their head of government
{'AND': [[{'concept': 'Q515'}, 'P1383', 'Q12129665'], [{'concept': 'Q515'}, 'P6', 'Q24008229']]}
SELECT DISTINCT ?e WHERE { ?e property:P1383 resource:Q12129665 . ?e property:P6 resource:Q24008229 . ?e rdf:type ontology:Q515 }
Roznov
Roznov supervises Chintinici and have Ionel Ciubotaru as their head of government
Roznov
action filter_type
action intersection
action find_reverse
entity Chintinici
relation contains settlement
action find_reverse
entity Ionel Ciubotaru
relation head of government
type city
{'AND': [[{'concept': 'city'}, 'contains settlement', 'Chintinici'], [{'concept': 'city'}, 'head of government', 'Ionel Ciubotaru']]}
SELECT DISTINCT ?e WHERE { ?e property:contains_settlement resource:Chintinici . ?e property:head_of_government resource:Ionel_Ciubotaru . ?e rdf:type ontology:city }
[]