Simple Question (Direct)
Simple Question
Q3742929
P19
Q515
USER
Where was Fernando Lupiz born ?
(Q3742929,P19,c(Q515))
action filter_type
action find
entity Q3742929
relation P19
type Q515
['Q3742929', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { resource:Q3742929 property:P19 ?v . ?v rdf:type ontology:Q515 }
Fernando Lupiz
action filter_type
action find
entity Fernando Lupiz
relation place of birth
type city
['Fernando Lupiz', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { resource:Fernando_Lupiz property:place_of_birth ?v . ?v rdf:type ontology:city }
[]
city
Q1486
SYSTEM
Buenos Aires
Q1486
(Q3742929,P19,c(Q515))
action filter_type
action find
entity Q3742929
relation P19
type Q515
Fernando Lupiz was born in [ANSWER]
['Q3742929', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { resource:Q3742929 property:P19 ?v . ?v rdf:type ontology:Q515 }
Buenos Aires
Fernando Lupiz was born in Buenos Aires
Buenos Aires
action filter_type
action find
entity Fernando Lupiz
relation place of birth
type city
['Fernando Lupiz', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { resource:Fernando_Lupiz property:place_of_birth ?v . ?v rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1486
P190
Q56061
USER
Which administrative territories are twin town of that city ?
(c(Q56061),P190,Q1486)
action filter_type
action find
entity Q1486
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q1486']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q1486 property:P190 ?s }
Buenos Aires
action filter_type
action find
entity Buenos Aires
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Buenos Aires']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Buenos_Aires property:sister_city ?s }
[]
administrative territorial entity
Q1085 Q649 Q2807
SYSTEM
Prague, Moscow, Madrid
Q8717 Q3766 Q628 Q649 Q8745 Q270 Q3820 Q1449 Q2807 Q34820 Q25395 Q15695 Q1524 Q406 Q2634 Q1489 Q71 Q8692 Q518431 Q3711 Q33935 Q2656 Q84 Q85 Q34370 Q7880 Q13678 Q40269 Q1218 Q1930 Q10400 Q174 Q244324 Q14314 Q8678 Q15682 Q490 Q2868 Q597 Q956 Q1335 Q64 Q1492 Q1897 Q5465 Q1085
(c(Q56061),P190,Q1486)
action filter_type
action find
entity Q1486
relation P190
type Q56061
[ANSWERS] are twin town of that city
[{'concept': 'Q56061'}, 'P190', 'Q1486']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q56061 . resource:Q1486 property:P190 ?s }
Seville Damascus Bergamo Moscow Vigo Warsaw Beirut Genoa Madrid Santo Domingo Newark Salamanca Athens Istanbul Naples Mexico City Geneva Bilbao Chimbote Belgrade Tel Aviv Palermo London Cairo Rotterdam Toulouse Agrigento Porto Alegre Jerusalem Ottawa Almería São Paulo Guadix Santiago de Compostela Rio de Janeiro Cádiz Milan Lima Lisbon Beijing Montevideo Berlin Barcelona Cagliari Cape Town Prague
Prague, Moscow and Madrid are twin town of that city
Prague Moscow Madrid
action filter_type
action find
entity Buenos Aires
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Buenos Aires']
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:administrative_territorial_entity . resource:Buenos_Aires property:sister_city ?s }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q649
P237
Q17335294
USER
Which coat of arms serves as the ensign for Moscow ?
(Q649,P237,c(Q17335294))
action filter_type
action find
entity Q649
relation P237
type Q17335294
['Q649', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?g WHERE { resource:Q649 property:P237 ?g . ?g rdf:type ontology:Q17335294 }
Moscow
action filter_type
action find
entity Moscow
relation coat of arms
type flag or coat of arms
['Moscow', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?g WHERE { resource:Moscow property:coat_of_arms ?g . ?g rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Q2079384
SYSTEM
Coat of arms of Moscow
Q2079384
(Q649,P237,c(Q17335294))
action filter_type
action find
entity Q649
relation P237
type Q17335294
The [ANSWER] serves as the ensign for Moscow
['Q649', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?g WHERE { resource:Q649 property:P237 ?g . ?g rdf:type ontology:Q17335294 }
Coat of arms of Moscow
The Coat of arms of Moscow serves as the ensign for Moscow
Coat of arms of Moscow
action filter_type
action find
entity Moscow
relation coat of arms
type flag or coat of arms
['Moscow', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?g WHERE { resource:Moscow property:coat_of_arms ?g . ?g rdf:type ontology:flag_or_coat_of_arms }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2079384 Q649
P237
Q56061
USER
Does Moscow have that one as coat of arms ?
(Q649,P237,Q2079384)
action is_in
entity Q2079384
action find
entity Q649
relation P237
['Q649', 'P237', 'Q2079384']
ASK WHERE { resource:Q649 property:P237 resource:Q2079384 }
Coat of arms of Moscow Moscow
action is_in
entity Coat of arms of Moscow
action find
entity Moscow
relation coat of arms
['Moscow', 'coat of arms', 'Coat of arms of Moscow']
ASK WHERE { resource:Moscow property:coat_of_arms resource:Coat_of_arms_of_Moscow }
[]
administrative territorial entity
SYSTEM
YES
(Q649,P237,Q2079384)
action is_in
entity Q2079384
action find
entity Q649
relation P237
[ANSWER]
['Q649', 'P237', 'Q2079384']
ASK WHERE { resource:Q649 property:P237 resource:Q2079384 }
Yes
action is_in
entity Coat of arms of Moscow
action find
entity Moscow
relation coat of arms
['Moscow', 'coat of arms', 'Coat of arms of Moscow']
ASK WHERE { resource:Moscow property:coat_of_arms resource:Coat_of_arms_of_Moscow }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1229289
P237
Q17335294 Q1048835
USER
How many political territories have more number of coats of arms as their ensign than Albinyana ?
(c(Q1048835),P237,c(Q17335294))
action count
action greater
action find_tuple_counts
relation P237
type Q1048835
type Q17335294
action count
action filter_type
action find
entity Q1229289
relation P237
type Q1048835
[{'concept': 'Q1048835'}, 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?c ) WHERE { ?r property:P237 ?u . ?r rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q17335294 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { resource:Q1229289 property:P237 ?a . ?a rdf:type ontology:Q1048835 } } . FILTER ( ?c > ?v ) }
Albinyana
action count
action greater
action find_tuple_counts
relation coat of arms
type political territorial entity
type flag or coat of arms
action count
action filter_type
action find
entity Albinyana
relation coat of arms
type political territorial entity
[{'concept': 'political territorial entity'}, 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?c ) WHERE { ?r property:coat_of_arms ?u . ?r rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:flag_or_coat_of_arms } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { resource:Albinyana property:coat_of_arms ?a . ?a rdf:type ontology:political_territorial_entity } } . FILTER ( ?c > ?v ) }
[]
flag or coat of arms political territorial entity
SYSTEM
25
Q127167 Q761735 Q5720 Q2271 Q169501 Q103738 Q1771128 Q1628188 Q5705 Q5783 Q187826 Q13490 Q1054923 Q3995 Q104231 Q2269982 Q3724 Q1553513 Q5756 Q691 Q48344 Q641221 Q4040 Q5739 Q3908
(c(Q1048835),P237,c(Q17335294))
action count
action greater
action find_tuple_counts
relation P237
type Q1048835
type Q17335294
action count
action filter_type
action find
entity Q1229289
relation P237
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?c ) WHERE { ?r property:P237 ?u . ?r rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q17335294 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { resource:Q1229289 property:P237 ?a . ?a rdf:type ontology:Q1048835 } } . FILTER ( ?c > ?v ) }
Western Cape Montblanc Valencian Country South Sumatra Poltava Oblast Gotland County Carcaixent Cangas Catalonia Andalusia Móstoles Palafrugell British Hong Kong Basque Country Stockholm County Sant Joanet West Java Province Sax, Alicante Community of Madrid Papua New Guinea Recife Viveiro Aragon Castile and León Galicia
25
action count
action greater
action find_tuple_counts
relation coat of arms
type political territorial entity
type flag or coat of arms
action count
action filter_type
action find
entity Albinyana
relation coat of arms
type political territorial entity
[{'concept': 'political territorial entity'}, 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?u ) AS ?c ) WHERE { ?r property:coat_of_arms ?u . ?r rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:flag_or_coat_of_arms } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) WHERE { resource:Albinyana property:coat_of_arms ?a . ?a rdf:type ontology:political_territorial_entity } } . FILTER ( ?c > ?v ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q572542
P237
Q17335294 Q1048835
USER
And how about Icod de los Vinos?
(c(Q1048835),P237,c(Q17335294))
action count
action greater
action find_tuple_counts
relation P237
type Q1048835
type Q17335294
action count
action filter_type
action find
entity Q572542
relation P237
type Q1048835
[{'concept': 'Q1048835'}, 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?s ) WHERE { ?q property:P237 ?f . ?q rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q17335294 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { resource:Q572542 property:P237 ?e . ?e rdf:type ontology:Q1048835 } } . FILTER ( ?s > ?g ) }
Icod de los Vinos
action count
action greater
action find_tuple_counts
relation coat of arms
type political territorial entity
type flag or coat of arms
action count
action filter_type
action find
entity Icod de los Vinos
relation coat of arms
type political territorial entity
[{'concept': 'political territorial entity'}, 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?s ) WHERE { ?q property:coat_of_arms ?f . ?q rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:flag_or_coat_of_arms } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { resource:Icod_de_los_Vinos property:coat_of_arms ?e . ?e rdf:type ontology:political_territorial_entity } } . FILTER ( ?s > ?g ) }
[]
flag or coat of arms political territorial entity
SYSTEM
25
Q127167 Q761735 Q5720 Q2271 Q169501 Q103738 Q1771128 Q1628188 Q5705 Q5783 Q187826 Q13490 Q1054923 Q3995 Q104231 Q2269982 Q3724 Q1553513 Q5756 Q691 Q48344 Q641221 Q4040 Q5739 Q3908
(c(Q1048835),P237,c(Q17335294))
action count
action greater
action find_tuple_counts
relation P237
type Q1048835
type Q17335294
action count
action filter_type
action find
entity Q572542
relation P237
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?s ) WHERE { ?q property:P237 ?f . ?q rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q17335294 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { resource:Q572542 property:P237 ?e . ?e rdf:type ontology:Q1048835 } } . FILTER ( ?s > ?g ) }
Western Cape Montblanc Valencian Country South Sumatra Poltava Oblast Gotland County Carcaixent Cangas Catalonia Andalusia Móstoles Palafrugell British Hong Kong Basque Country Stockholm County Sant Joanet West Java Province Sax, Alicante Community of Madrid Papua New Guinea Recife Viveiro Aragon Castile and León Galicia
25
action count
action greater
action find_tuple_counts
relation coat of arms
type political territorial entity
type flag or coat of arms
action count
action filter_type
action find
entity Icod de los Vinos
relation coat of arms
type political territorial entity
[{'concept': 'political territorial entity'}, 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?s ) WHERE { ?q property:coat_of_arms ?f . ?q rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:flag_or_coat_of_arms } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) WHERE { resource:Icod_de_los_Vinos property:coat_of_arms ?e . ?e rdf:type ontology:political_territorial_entity } } . FILTER ( ?s > ?g ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P237
Q17335294 Q7275
USER
Which states have min number of coats of arms as their ensign ?
(c(Q7275),P237,c(Q17335294))
action argmin
action find_tuple_counts
relation P237
type Q7275
type Q17335294
[{'concept': 'Q7275'}, 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?z ) { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?w ) WHERE { ?k rdf:type ontology:Q17335294 . ?s rdf:type ontology:Q7275 . ?s property:P237 ?k } GROUP BY ?s } } . FILTER ( ?u = ?z ) . { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?u ) WHERE { ?m property:P237 ?p . ?m rdf:type ontology:Q7275 . ?p rdf:type ontology:Q17335294 } GROUP BY ?m } }
action argmin
action find_tuple_counts
relation coat of arms
type state
type flag or coat of arms
[{'concept': 'state'}, 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?z ) { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?w ) WHERE { ?k rdf:type ontology:flag_or_coat_of_arms . ?s rdf:type ontology:state . ?s property:coat_of_arms ?k } GROUP BY ?s } } . FILTER ( ?u = ?z ) . { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?u ) WHERE { ?m property:coat_of_arms ?p . ?m rdf:type ontology:state . ?p rdf:type ontology:flag_or_coat_of_arms } GROUP BY ?m } }
[]
flag or coat of arms state
Q33946 Q15180 Q26273
SYSTEM
Czechoslovakia, Soviet Union, Sint Maarten
Q230791 Q33946 Q15864 Q11196 Q179876 Q13706 Q174193 Q15180 Q853348 Q696908 Q330988 Q212056 Q26988 Q26273 Q551798 Q30623 Q19901436 Q2184
(c(Q7275),P237,c(Q17335294))
action argmin
action find_tuple_counts
relation P237
type Q7275
type Q17335294
[ANSWERS] have min number of coats of arms as their ensign
[{'concept': 'Q7275'}, 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?z ) { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?w ) WHERE { ?k rdf:type ontology:Q17335294 . ?s rdf:type ontology:Q7275 . ?s property:P237 ?k } GROUP BY ?s } } . FILTER ( ?u = ?z ) . { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?u ) WHERE { ?m property:P237 ?p . ?m rdf:type ontology:Q7275 . ?p rdf:type ontology:Q17335294 } GROUP BY ?m } }
Kingdom of Scotland Czechoslovakia United Kingdom of the Netherlands Republika Srpska Kingdom of England Principality of Sealand United Kingdom of Great Britain and Ireland Soviet Union Czechoslovak Socialist Republic Kingdom of Poland Democratic Kampuchea Mongolian People's Republic Cook Islands Sint Maarten Grand Duchy of Flandrensis Manchukuo Suriname Russian Soviet Federative Socialist Republic
Czechoslovakia, Soviet Union and Sint Maarten have min number of coats of arms as their ensign
Czechoslovakia Soviet Union Sint Maarten
action argmin
action find_tuple_counts
relation coat of arms
type state
type flag or coat of arms
[{'concept': 'state'}, 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?w ) AS ?z ) { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?w ) WHERE { ?k rdf:type ontology:flag_or_coat_of_arms . ?s rdf:type ontology:state . ?s property:coat_of_arms ?k } GROUP BY ?s } } . FILTER ( ?u = ?z ) . { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?u ) WHERE { ?m property:coat_of_arms ?p . ?m rdf:type ontology:state . ?p rdf:type ontology:flag_or_coat_of_arms } GROUP BY ?m } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q33946 Q15180 Q26273
P36
Q56061
USER
Which administrative territories are called the capital of those states ?
(Q33946,P36,c(Q56061)) (Q15180,P36,c(Q56061)) (Q26273,P36,c(Q56061))
action filter_type
action find
entity prev_answer
relation P36
type Q56061
['Q33946', 'P36', {'concept': 'Q56061'}] ['Q15180', 'P36', {'concept': 'Q56061'}] ['Q26273', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . ?o property:P36 ?p . VALUES ( ?o ) { ( resource:Q230791 ) ( resource:Q33946 ) ( resource:Q15864 ) } }
Czechoslovakia Soviet Union Sint Maarten
action filter_type
action find
entity prev_answer
relation capital
type administrative territorial entity
['Czechoslovakia', 'capital', {'concept': 'administrative territorial entity'}] ['Soviet Union', 'capital', {'concept': 'administrative territorial entity'}] ['Sint Maarten', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . ?o property:capital ?p . VALUES ( ?o ) { ( resource:Kingdom_of_Scotland ) ( resource:Czechoslovakia ) ( resource:United_Kingdom_of_the_Netherlands ) } }
[]
administrative territorial entity
Q1085 Q649 Q30958
SYSTEM
Prague, Moscow, Philipsburg
Q1085 Q649 Q30958
(Q33946,P36,c(Q56061)) (Q15180,P36,c(Q56061)) (Q26273,P36,c(Q56061))
action filter_type
action find
entity prev_answer
relation P36
type Q56061
[ANSWERS] are called the capital of those states
['Q33946', 'P36', {'concept': 'Q56061'}] ['Q15180', 'P36', {'concept': 'Q56061'}] ['Q26273', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . ?o property:P36 ?p . VALUES ( ?o ) { ( resource:Q230791 ) ( resource:Q33946 ) ( resource:Q15864 ) } }
Prague Moscow Philipsburg
Prague, Moscow and Philipsburg are called the capital of those states
Prague Moscow Philipsburg
action filter_type
action find
entity prev_answer
relation capital
type administrative territorial entity
['Czechoslovakia', 'capital', {'concept': 'administrative territorial entity'}] ['Soviet Union', 'capital', {'concept': 'administrative territorial entity'}] ['Sint Maarten', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . ?o property:capital ?p . VALUES ( ?o ) { ( resource:Kingdom_of_Scotland ) ( resource:Czechoslovakia ) ( resource:United_Kingdom_of_the_Netherlands ) } }
[]