Simple Question (Direct)
Simple Question
Q12026448
P20
Q515
USER
Where did Josef Náprstek expire ?
(Q12026448,P20,c(Q515))
action filter_type
action find
entity Q12026448
relation P20
type Q515
['Q12026448', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { resource:Q12026448 property:P20 ?y . ?y rdf:type ontology:Q515 }
Josef Náprstek
action filter_type
action find
entity Josef Náprstek
relation place of death
type city
['Josef Náprstek', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { resource:Josef_Náprstek property:place_of_death ?y . ?y rdf:type ontology:city }
[]
city
Q1013909
SYSTEM
Slaný
Q1013909
(Q12026448,P20,c(Q515))
action filter_type
action find
entity Q12026448
relation P20
type Q515
Josef Náprstek expired in [ANSWER]
['Q12026448', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?y WHERE { resource:Q12026448 property:P20 ?y . ?y rdf:type ontology:Q515 }
Slaný
Josef Náprstek expired in Slaný
Slaný
action filter_type
action find
entity Josef Náprstek
relation place of death
type city
['Josef Náprstek', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?y WHERE { resource:Josef_Náprstek property:place_of_death ?y . ?y rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12026448
P19
Q515
USER
Which city was that person born at ?
(Q1013909,P19,c(Q515))
action filter_type
action find
entity Q12026448
relation P19
type Q515
['Q1013909', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?b WHERE { resource:Q12026448 property:P19 ?b . ?b rdf:type ontology:Q515 }
Josef Náprstek
action filter_type
action find
entity Josef Náprstek
relation place of birth
type city
['Slaný', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?b WHERE { resource:Josef_Náprstek property:place_of_birth ?b . ?b rdf:type ontology:city }
[]
city
Q1013909
SYSTEM
Slaný
Q1013909
(Q1013909,P19,c(Q515))
action filter_type
action find
entity Q12026448
relation P19
type Q515
That person was born in [ANSWER]
['Q1013909', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?b WHERE { resource:Q12026448 property:P19 ?b . ?b rdf:type ontology:Q515 }
Slaný
That person was born in Slaný
Slaný
action filter_type
action find
entity Josef Náprstek
relation place of birth
type city
['Slaný', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?b WHERE { resource:Josef_Náprstek property:place_of_birth ?b . ?b rdf:type ontology:city }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7926447 Q12026448
P106
Q12737077
USER
Which occupations do Josef Náprstek or Victor White do for a living ?
OR((Q12026448,P106,c(Q12737077)), (Q7926447,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q12026448
relation P106
action find
entity Q7926447
relation P106
type Q12737077
{'OR': [['Q12026448', 'P106', {'concept': 'Q12737077'}], ['Q7926447', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q12026448 property:P106 ?f } UNION { resource:Q7926447 property:P106 ?f } } . ?f rdf:type ontology:Q12737077 }
Victor White Josef Náprstek
action filter_type
action union
action find
entity Josef Náprstek
relation occupation
action find
entity Victor White
relation occupation
type occupation
{'OR': [['Josef Náprstek', 'occupation', {'concept': 'occupation'}], ['Victor White', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Josef_Náprstek property:occupation ?f } UNION { resource:Victor_White property:occupation ?f } } . ?f rdf:type ontology:occupation }
[]
occupation
Q486839 Q1930187 Q36180 Q222982
SYSTEM
member of parliament, journalist, writer, flying ace
Q486839 Q1930187 Q36180 Q222982
OR((Q12026448,P106,c(Q12737077)), (Q7926447,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q12026448
relation P106
action find
entity Q7926447
relation P106
type Q12737077
[ANSWERS] do Josef Náprstek or Victor White do for a living
{'OR': [['Q12026448', 'P106', {'concept': 'Q12737077'}], ['Q7926447', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q12026448 property:P106 ?f } UNION { resource:Q7926447 property:P106 ?f } } . ?f rdf:type ontology:Q12737077 }
member of parliament journalist writer flying ace
Member of parliament, journalist, writer and flying ace do Josef Náprstek or Victor White do for a living
member of parliament journalist writer flying ace
action filter_type
action union
action find
entity Josef Náprstek
relation occupation
action find
entity Victor White
relation occupation
type occupation
{'OR': [['Josef Náprstek', 'occupation', {'concept': 'occupation'}], ['Victor White', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Josef_Náprstek property:occupation ?f } UNION { resource:Victor_White property:occupation ?f } } . ?f rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1013909
P17
Q15617994
USER
How many administrative territories do Slaný belong to ?
(Q1013909,P17,c(Q15617994))
action count
action filter_type
action find
entity Q1013909
relation P17
type Q15617994
['Q1013909', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Q1013909 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Slaný
action count
action filter_type
action find
entity Slaný
relation country
type designation for an administrative territorial entity
['Slaný', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Slaný property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q213
(Q1013909,P17,c(Q15617994))
action count
action filter_type
action find
entity Q1013909
relation P17
type Q15617994
[ANSWER]
['Q1013909', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Q1013909 property:P17 ?v . ?v rdf:type ontology:Q15617994 }
Czech Republic
1
action count
action filter_type
action find
entity Slaný
relation country
type designation for an administrative territorial entity
['Slaný', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { resource:Slaný property:country ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q5644993
Q15617994
USER
And also tell me about Hamilton High School?
(Q5644993,P17,c(Q15617994))
action count
action filter_type
action find
entity Q5644993
relation P17
type Q15617994
['Q5644993', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { resource:Q5644993 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Hamilton High School
action count
action filter_type
action find
entity Hamilton High School
relation country
type designation for an administrative territorial entity
['Hamilton High School', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { resource:Hamilton_High_School property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q5644993,P17,c(Q15617994))
action count
action filter_type
action find
entity Q5644993
relation P17
type Q15617994
[ANSWER]
['Q5644993', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { resource:Q5644993 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Hamilton High School
relation country
type designation for an administrative territorial entity
['Hamilton High School', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { resource:Hamilton_High_School property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q12737077 Q15709879 Q11060274
USER
Which occupations are expressed in max number of artwork series and prints ?
(c(Q15709879)|c(Q11060274),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
[[{'concept': 'Q15709879'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?t = ?o ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) ?i WHERE { VALUES ( ?n ) { ( ontology:Q11060274 ) ( ontology:Q15709879 ) } . ?u rdf:type ?n } GROUP BY ?i } . { SELECT DISTINCT ( MAX ( ?r ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) ?h WHERE { ?y rdf:type ?e . VALUES ( ?e ) { ( ontology:Q11060274 ) ( ontology:Q15709879 ) } } GROUP BY ?h } } }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action find_reverse_tuple_counts
relation depicts
type occupation
type print
[[{'concept': 'artwork series'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?t = ?o ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) ?i WHERE { VALUES ( ?n ) { ( ontology:print ) ( ontology:artwork_series ) } . ?u rdf:type ?n } GROUP BY ?i } . { SELECT DISTINCT ( MAX ( ?r ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) ?h WHERE { ?y rdf:type ?e . VALUES ( ?e ) { ( ontology:print ) ( ontology:artwork_series ) } } GROUP BY ?h } } }
[]
occupation artwork series print
Q483501 Q838811
SYSTEM
artist, peasant
Q483501 Q838811
(c(Q15709879)|c(Q11060274),P180,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
The [ANSWERS] are expressed in max number of artwork series and prints
[[{'concept': 'Q15709879'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?t = ?o ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) ?i WHERE { VALUES ( ?n ) { ( ontology:Q11060274 ) ( ontology:Q15709879 ) } . ?u rdf:type ?n } GROUP BY ?i } . { SELECT DISTINCT ( MAX ( ?r ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) ?h WHERE { ?y rdf:type ?e . VALUES ( ?e ) { ( ontology:Q11060274 ) ( ontology:Q15709879 ) } } GROUP BY ?h } } }
artist peasant
The artist and peasant are expressed in max number of artwork series and prints
artist peasant
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type artwork series
action find_reverse_tuple_counts
relation depicts
type occupation
type print
[[{'concept': 'artwork series'}, {'concept': 'print'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?t = ?o ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) ?i WHERE { VALUES ( ?n ) { ( ontology:print ) ( ontology:artwork_series ) } . ?u rdf:type ?n } GROUP BY ?i } . { SELECT DISTINCT ( MAX ( ?r ) AS ?o ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) ?h WHERE { ?y rdf:type ?e . VALUES ( ?e ) { ( ontology:print ) ( ontology:artwork_series ) } } GROUP BY ?h } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q515 Q15617994 Q515
USER
Which cities are the capital of atleast 1 cities and administrative territories ?
(c(Q515),P1376,c(Q515)|c(Q15617994))
action atleast
action union
action find_tuple_counts
relation P1376
type Q515
type Q515
action find_tuple_counts
relation P1376
type Q515
type Q15617994
value 1
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q515'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?f WHERE { ?e rdf:type ?j . VALUES ( ?j ) { ( ontology:Q515 ) ( ontology:Q15617994 ) } } GROUP BY ?f } . FILTER ( ?g >= 1 ) }
action atleast
action union
action find_tuple_counts
relation capital of
type city
type city
action find_tuple_counts
relation capital of
type city
type designation for an administrative territorial entity
value 1
[{'concept': 'city'}, 'capital of', [{'concept': 'city'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?f WHERE { ?e rdf:type ?j . VALUES ( ?j ) { ( ontology:city ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?f } . FILTER ( ?g >= 1 ) }
[]
city designation for an administrative territorial entity city
Q1486 Q1773 Q1899
SYSTEM
Buenos Aires, Riga, Kyiv
Q3572 Q19689 Q3624 Q7473516 Q3870 Q2135 Q3926 Q23482 Q5838 Q3692 Q1899 Q1410 Q1486 Q1461 Q1844 Q23430 Q1362 Q1519 Q8684 Q3838 Q3104 Q7248 Q6602 Q3904 Q7568 Q3866 Q3859 Q19660 Q3915 Q1953 Q2978 Q34261 Q1773 Q14821 Q1858 Q2096 Q3787 Q7070 Q3826 Q1533 Q42751 Q11194 Q1720 Q2907 Q2844 Q3768 Q1863 Q1865 Q6582 Q1761 Q2887 Q2061 Q456 Q3935 Q7003 Q3919 Q3751 Q3750 Q3616 Q25475 Q1530 Q2900 Q187284
(c(Q515),P1376,c(Q515)|c(Q15617994))
action atleast
action union
action find_tuple_counts
relation P1376
type Q515
type Q515
action find_tuple_counts
relation P1376
type Q515
type Q15617994
value 1
[ANSWERS] are the capital of atleast 1 cities and administrative territories
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q515'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?f WHERE { ?e rdf:type ?j . VALUES ( ?j ) { ( ontology:Q515 ) ( ontology:Q15617994 ) } } GROUP BY ?f } . FILTER ( ?g >= 1 ) }
Tunis Tirana Addis Ababa Tokyo Nairobi Winnipeg Pretoria Marseille Kabul Riyadh Kyiv Gibraltar Buenos Aires Manila Vaduz Ulaanbaatar Islamabad Abu Dhabi Seoul Kinshasa Koblenz Bukittinggi Strasbourg Mbabane Yogyakarta Dodoma Kigali Bucharest Antananarivo Yerevan Regensburg Port-au-Prince Riga Coburg Hanoi Edmonton Abuja Eisenach Muscat Caracas Palikir Sarajevo Mainz Sucre Brasília Yamoussoukro Andorra la Vella Kuala Lumpur Carcassonne Dublin Santiago Yellowknife Lyon Windhoek Dijon Gaborone Praia Gera Tehran Batumi Baghdad Quito Hurghada
Buenos Aires, Riga and Kyiv are the capital of atleast 1 cities and administrative territories
Buenos Aires Riga Kyiv
action atleast
action union
action find_tuple_counts
relation capital of
type city
type city
action find_tuple_counts
relation capital of
type city
type designation for an administrative territorial entity
value 1
[{'concept': 'city'}, 'capital of', [{'concept': 'city'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?g ) ?f WHERE { ?e rdf:type ?j . VALUES ( ?j ) { ( ontology:city ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?f } . FILTER ( ?g >= 1 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P1376
Q7275 Q15617994
USER
How many states and administrative territories have that city as their capital ?
(Q1486,P1376,c(Q7275)) (Q1486,P1376,c(Q15617994)) (Q1486,P1376,c(Q7275)) (Q1486,P1376,c(Q15617994)) (Q1773,P1376,c(Q7275)) (Q1773,P1376,c(Q15617994)) (Q1899,P1376,c(Q7275)) (Q1899,P1376,c(Q15617994))
['Q1486', 'P1376', {'concept': 'Q7275'}] ['Q1486', 'P1376', {'concept': 'Q15617994'}] ['Q1486', 'P1376', {'concept': 'Q7275'}] ['Q1486', 'P1376', {'concept': 'Q15617994'}] ['Q1773', 'P1376', {'concept': 'Q7275'}] ['Q1773', 'P1376', {'concept': 'Q15617994'}] ['Q1899', 'P1376', {'concept': 'Q7275'}] ['Q1899', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q2101554 property:P1376 ?z } UNION { resource:Q2101554 property:P1376 ?y } UNION { resource:Q2101554 property:P1376 ?z } UNION { resource:Q2101554 property:P1376 ?y } UNION { resource:Q19468180 property:P1376 ?z } UNION { resource:Q19468180 property:P1376 ?y } UNION { resource:Q4512420 property:P1376 ?z } UNION { resource:Q4512420 property:P1376 ?y } } . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q15617994 }
['Buenos Aires', 'capital of', {'concept': 'state'}] ['Buenos Aires', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Buenos Aires', 'capital of', {'concept': 'state'}] ['Buenos Aires', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Riga', 'capital of', {'concept': 'state'}] ['Riga', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Kyiv', 'capital of', {'concept': 'state'}] ['Kyiv', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Buenos_Aires property:capital_of ?z } UNION { resource:Buenos_Aires property:capital_of ?y } UNION { resource:Buenos_Aires property:capital_of ?z } UNION { resource:Buenos_Aires property:capital_of ?y } UNION { resource:Riga property:capital_of ?z } UNION { resource:Riga property:capital_of ?y } UNION { resource:Kyiv property:capital_of ?z } UNION { resource:Kyiv property:capital_of ?y } } . ?z rdf:type ontology:state . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
state designation for an administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q1486
SYSTEM
Did you mean Buenos Aires ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q2101554 property:P1376 ?z } UNION { resource:Q2101554 property:P1376 ?y } UNION { resource:Q2101554 property:P1376 ?z } UNION { resource:Q2101554 property:P1376 ?y } UNION { resource:Q19468180 property:P1376 ?z } UNION { resource:Q19468180 property:P1376 ?y } UNION { resource:Q4512420 property:P1376 ?z } UNION { resource:Q4512420 property:P1376 ?y } } . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q15617994 }
Did you mean Buenos Aires ?
Buenos Aires
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Buenos_Aires property:capital_of ?z } UNION { resource:Buenos_Aires property:capital_of ?y } UNION { resource:Buenos_Aires property:capital_of ?z } UNION { resource:Buenos_Aires property:capital_of ?y } UNION { resource:Riga property:capital_of ?z } UNION { resource:Riga property:capital_of ?y } UNION { resource:Kyiv property:capital_of ?z } UNION { resource:Kyiv property:capital_of ?y } } . ?z rdf:type ontology:state . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q1486,P1376,c(Q7275)) (Q1486,P1376,c(Q15617994)) (Q1486,P1376,c(Q7275)) (Q1486,P1376,c(Q15617994)) (Q1773,P1376,c(Q7275)) (Q1773,P1376,c(Q15617994)) (Q1899,P1376,c(Q7275)) (Q1899,P1376,c(Q15617994))
['Q1486', 'P1376', {'concept': 'Q7275'}] ['Q1486', 'P1376', {'concept': 'Q15617994'}] ['Q1486', 'P1376', {'concept': 'Q7275'}] ['Q1486', 'P1376', {'concept': 'Q15617994'}] ['Q1773', 'P1376', {'concept': 'Q7275'}] ['Q1773', 'P1376', {'concept': 'Q15617994'}] ['Q1899', 'P1376', {'concept': 'Q7275'}] ['Q1899', 'P1376', {'concept': 'Q15617994'}]
['Buenos Aires', 'capital of', {'concept': 'state'}] ['Buenos Aires', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Buenos Aires', 'capital of', {'concept': 'state'}] ['Buenos Aires', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Riga', 'capital of', {'concept': 'state'}] ['Riga', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Kyiv', 'capital of', {'concept': 'state'}] ['Kyiv', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1 states and 1 administrative territories
Q738144 Q414
(Q1486,P1376,c(Q7275)) (Q1486,P1376,c(Q15617994)) (Q1486,P1376,c(Q7275)) (Q1486,P1376,c(Q15617994)) (Q1773,P1376,c(Q7275)) (Q1773,P1376,c(Q15617994)) (Q1899,P1376,c(Q7275)) (Q1899,P1376,c(Q15617994))
[ANSWER]
['Q1486', 'P1376', {'concept': 'Q7275'}] ['Q1486', 'P1376', {'concept': 'Q15617994'}] ['Q1486', 'P1376', {'concept': 'Q7275'}] ['Q1486', 'P1376', {'concept': 'Q15617994'}] ['Q1773', 'P1376', {'concept': 'Q7275'}] ['Q1773', 'P1376', {'concept': 'Q15617994'}] ['Q1899', 'P1376', {'concept': 'Q7275'}] ['Q1899', 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q2101554 property:P1376 ?z } UNION { resource:Q2101554 property:P1376 ?y } UNION { resource:Q2101554 property:P1376 ?z } UNION { resource:Q2101554 property:P1376 ?y } UNION { resource:Q19468180 property:P1376 ?z } UNION { resource:Q19468180 property:P1376 ?y } UNION { resource:Q4512420 property:P1376 ?z } UNION { resource:Q4512420 property:P1376 ?y } } . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q15617994 }
United Provinces of the Río de la Plata Argentina
1 states and 1 administrative territories
['Buenos Aires', 'capital of', {'concept': 'state'}] ['Buenos Aires', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Buenos Aires', 'capital of', {'concept': 'state'}] ['Buenos Aires', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Riga', 'capital of', {'concept': 'state'}] ['Riga', 'capital of', {'concept': 'designation for an administrative territorial entity'}] ['Kyiv', 'capital of', {'concept': 'state'}] ['Kyiv', 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Buenos_Aires property:capital_of ?z } UNION { resource:Buenos_Aires property:capital_of ?y } UNION { resource:Buenos_Aires property:capital_of ?z } UNION { resource:Buenos_Aires property:capital_of ?y } UNION { resource:Riga property:capital_of ?z } UNION { resource:Riga property:capital_of ?y } UNION { resource:Kyiv property:capital_of ?z } UNION { resource:Kyiv property:capital_of ?y } } . ?z rdf:type ontology:state . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1486
P190
Q1048835
USER
Which political territories are twin towns of Buenos Aires ?
(Q1486,P190,c(Q1048835))
action filter_type
action find
entity Q1486
relation P190
type Q1048835
['Q1486', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q1486 property:P190 ?q . ?q rdf:type ontology:Q1048835 }
Buenos Aires
action filter_type
action find
entity Buenos Aires
relation sister city
type political territorial entity
['Buenos Aires', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Buenos_Aires property:sister_city ?q . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q433632 Q5783
SYSTEM
Santa Cruz de La Palma, Andalusia
Q433632 Q5783
(Q1486,P190,c(Q1048835))
action filter_type
action find
entity Q1486
relation P190
type Q1048835
[ANSWERS] are twin towns of Buenos Aires
['Q1486', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q1486 property:P190 ?q . ?q rdf:type ontology:Q1048835 }
Santa Cruz de La Palma Andalusia
Santa Cruz de La Palma and Andalusia are twin towns of Buenos Aires
Santa Cruz de La Palma Andalusia
action filter_type
action find
entity Buenos Aires
relation sister city
type political territorial entity
['Buenos Aires', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Buenos_Aires property:sister_city ?q . ?q rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q433632
P1001
Q12737077
USER
Which occupation presides the jurisdiction over that political territory ?
(c(Q12737077),P1001,Q433632)
action filter_type
action find_reverse
entity Q433632
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q433632']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . ?m property:P1001 resource:Q433632 }
Santa Cruz de La Palma
action filter_type
action find_reverse
entity Santa Cruz de La Palma
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Santa Cruz de La Palma']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . ?m property:applies_to_jurisdiction resource:Santa_Cruz_de_La_Palma }
[]
occupation
Clarification for simple ques.
Q433632
SYSTEM
Did you mean Santa Cruz de La Palma ?
Q433632 Q5783
(c(Q12737077),P1001,Q433632) (c(Q12737077),P1001,Q5783)
[ANSWER]
[{'concept': 'Q12737077'}, 'P1001', 'Q433632'] [{'concept': 'Q12737077'}, 'P1001', 'Q5783']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . ?m property:P1001 resource:Q433632 }
Santa Cruz de La Palma Andalusia
Did you mean Santa Cruz de La Palma ?
Santa Cruz de La Palma
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Santa Cruz de La Palma'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Andalusia']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . ?m property:applies_to_jurisdiction resource:Santa_Cruz_de_La_Palma }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q12737077),P1001,Q433632)
[{'concept': 'Q12737077'}, 'P1001', 'Q433632']
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Santa Cruz de La Palma']
[]
Q26698188
SYSTEM
mayor of Santa Cruz de La Palma
Q26698188
(c(Q12737077),P1001,Q433632)
action filter_type
action find_reverse
entity Q433632
relation P1001
type Q12737077
The [ANSWER] presides the jurisdiction over that political territory
[{'concept': 'Q12737077'}, 'P1001', 'Q433632']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . ?m property:P1001 resource:Q433632 }
mayor of Santa Cruz de La Palma
The mayor of Santa Cruz de La Palma presides the jurisdiction over that political territory
mayor of Santa Cruz de La Palma
action filter_type
action find_reverse
entity Santa Cruz de La Palma
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Santa Cruz de La Palma']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . ?m property:applies_to_jurisdiction resource:Santa_Cruz_de_La_Palma }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q15617994 Q13220204 Q515
USER
Which cities are center of administration for exactly 3 administrative territories or administrative country subdivisions ?
(c(Q515),P1376,c(Q15617994)|c(Q13220204))
action equal
action union
action find_tuple_counts
relation P1376
type Q515
type Q15617994
action find_tuple_counts
relation P1376
type Q515
type Q13220204
value 3
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q15617994'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) ?a WHERE { ?d rdf:type ?x . VALUES ( ?x ) { ( ontology:Q15617994 ) ( ontology:Q13220204 ) } } GROUP BY ?a } . FILTER ( ?m = 3 ) }
action equal
action union
action find_tuple_counts
relation capital of
type city
type designation for an administrative territorial entity
action find_tuple_counts
relation capital of
type city
type second-level administrative country subdivision
value 3
[{'concept': 'city'}, 'capital of', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) ?a WHERE { ?d rdf:type ?x . VALUES ( ?x ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?a } . FILTER ( ?m = 3 ) }
[]
designation for an administrative territorial entity second-level administrative country subdivision city
Q7003
SYSTEM
Dijon
Q7003
(c(Q515),P1376,c(Q15617994)|c(Q13220204))
action equal
action union
action find_tuple_counts
relation P1376
type Q515
type Q15617994
action find_tuple_counts
relation P1376
type Q515
type Q13220204
value 3
[ANSWER] is center of administration for exactly 3 administrative territories or administrative country subdivisions
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q15617994'}, {'concept': 'Q13220204'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) ?a WHERE { ?d rdf:type ?x . VALUES ( ?x ) { ( ontology:Q15617994 ) ( ontology:Q13220204 ) } } GROUP BY ?a } . FILTER ( ?m = 3 ) }
Dijon
Dijon is center of administration for exactly 3 administrative territories or administrative country subdivisions
Dijon
action equal
action union
action find_tuple_counts
relation capital of
type city
type designation for an administrative territorial entity
action find_tuple_counts
relation capital of
type city
type second-level administrative country subdivision
value 3
[{'concept': 'city'}, 'capital of', [{'concept': 'designation for an administrative territorial entity'}, {'concept': 'second-level administrative country subdivision'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) ?a WHERE { ?d rdf:type ?x . VALUES ( ?x ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?a } . FILTER ( ?m = 3 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q426868
P609
Q515 Q34442 Q83620
USER
Which cities are the terminus locations of greater number of roads and thoroughfares than Leshan ?
(c(Q34442)|c(Q83620),P609,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q426868
relation P609
type Q34442
type Q83620
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?f WHERE { VALUES ( ?g ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } . ?s rdf:type ?g } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { ?x property:P609 resource:Q426868 . { { ?x rdf:type ontology:Q34442 } UNION { ?x rdf:type ontology:Q83620 } } } } . FILTER ( ?t > ?l ) }
Leshan
action greater
action union
action find_reverse_tuple_counts
relation terminus location
type city
type road
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Leshan
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?f WHERE { VALUES ( ?g ) { ( ontology:thoroughfare ) ( ontology:road ) } . ?s rdf:type ?g } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { ?x property:terminus_location resource:Leshan . { { ?x rdf:type ontology:road } UNION { ?x rdf:type ontology:thoroughfare } } } } . FILTER ( ?t > ?l ) }
[]
city road thoroughfare
Q14960 Q11736 Q182852
SYSTEM
Brno, Tianjin, Kunming
Q182852 Q58560 Q23768 Q11736 Q211243 Q75110 Q183584 Q14960
(c(Q34442)|c(Q83620),P609,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q426868
relation P609
type Q34442
type Q83620
[ANSWERS] are the terminus locations of greater number of roads and thoroughfares than Leshan
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?f WHERE { VALUES ( ?g ) { ( ontology:Q83620 ) ( ontology:Q34442 ) } . ?s rdf:type ?g } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { ?x property:P609 resource:Q426868 . { { ?x rdf:type ontology:Q34442 } UNION { ?x rdf:type ontology:Q83620 } } } } . FILTER ( ?t > ?l ) }
Kunming Qinhuangdao Las Vegas Tianjin Yinchuan Dandong Lanzhou Brno
Brno, Tianjin and Kunming are the terminus locations of greater number of roads and thoroughfares than Leshan
Brno Tianjin Kunming
action greater
action union
action find_reverse_tuple_counts
relation terminus location
type city
type road
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Leshan
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) ?f WHERE { VALUES ( ?g ) { ( ontology:thoroughfare ) ( ontology:road ) } . ?s rdf:type ?g } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { ?x property:terminus_location resource:Leshan . { { ?x rdf:type ontology:road } UNION { ?x rdf:type ontology:thoroughfare } } } } . FILTER ( ?t > ?l ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q379160
P609
Q515 Q34442 Q83620
USER
And also tell me about Kunszentmárton?
(c(Q34442)|c(Q83620),P609,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q379160
relation P609
type Q34442
type Q83620
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:P609 resource:Q379160 . { { ?e rdf:type ontology:Q34442 } UNION { ?e rdf:type ontology:Q83620 } } } } . FILTER ( ?a > ?z ) . { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?a ) WHERE { VALUES ( ?l ) { ( ontology:Q34442 ) ( ontology:Q83620 ) } . ?u rdf:type ?l } GROUP BY ?j } }
Kunszentmárton
action greater
action union
action find_reverse_tuple_counts
relation terminus location
type city
type road
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Kunszentmárton
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:terminus_location resource:Kunszentmárton . { { ?e rdf:type ontology:road } UNION { ?e rdf:type ontology:thoroughfare } } } } . FILTER ( ?a > ?z ) . { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?a ) WHERE { VALUES ( ?l ) { ( ontology:road ) ( ontology:thoroughfare ) } . ?u rdf:type ?l } GROUP BY ?j } }
[]
city road thoroughfare
Q14960 Q11736 Q182852
SYSTEM
Brno, Tianjin, Kunming
Q182852 Q58560 Q23768 Q11736 Q211243 Q75110 Q183584 Q14960
(c(Q34442)|c(Q83620),P609,c(Q515))
action greater
action union
action find_reverse_tuple_counts
relation P609
type Q515
type Q34442
action find_reverse_tuple_counts
relation P609
type Q515
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q379160
relation P609
type Q34442
type Q83620
[ANSWERS]
[[{'concept': 'Q34442'}, {'concept': 'Q83620'}], 'P609', {'concept': 'Q515'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:P609 resource:Q379160 . { { ?e rdf:type ontology:Q34442 } UNION { ?e rdf:type ontology:Q83620 } } } } . FILTER ( ?a > ?z ) . { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?a ) WHERE { VALUES ( ?l ) { ( ontology:Q34442 ) ( ontology:Q83620 ) } . ?u rdf:type ?l } GROUP BY ?j } }
Kunming Qinhuangdao Las Vegas Tianjin Yinchuan Dandong Lanzhou Brno
Brno Tianjin Kunming
action greater
action union
action find_reverse_tuple_counts
relation terminus location
type city
type road
action find_reverse_tuple_counts
relation terminus location
type city
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Kunszentmárton
relation terminus location
type road
type thoroughfare
[[{'concept': 'road'}, {'concept': 'thoroughfare'}], 'terminus location', {'concept': 'city'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { ?e property:terminus_location resource:Kunszentmárton . { { ?e rdf:type ontology:road } UNION { ?e rdf:type ontology:thoroughfare } } } } . FILTER ( ?a > ?z ) . { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?a ) WHERE { VALUES ( ?l ) { ( ontology:road ) ( ontology:thoroughfare ) } . ?u rdf:type ?l } GROUP BY ?j } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q208807 Q379160
P17
Q15617994
USER
Which administrative territories are Kunszentmárton or Guiana Shield located in ?
OR((Q379160,P17,c(Q15617994)), (Q208807,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q379160
relation P17
action find
entity Q208807
relation P17
type Q15617994
{'OR': [['Q379160', 'P17', {'concept': 'Q15617994'}], ['Q208807', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q379160 property:P17 ?t } UNION { resource:Q208807 property:P17 ?t } } . ?t rdf:type ontology:Q15617994 }
Guiana Shield Kunszentmárton
action filter_type
action union
action find
entity Kunszentmárton
relation country
action find
entity Guiana Shield
relation country
type designation for an administrative territorial entity
{'OR': [['Kunszentmárton', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Guiana Shield', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Kunszentmárton property:country ?t } UNION { resource:Guiana_Shield property:country ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q739 Q142 Q717 Q155 Q730 Q734 Q28
SYSTEM
Colombia, France, Venezuela, Brazil, Suriname, Guyana, Hungary
Q739 Q142 Q717 Q155 Q730 Q734 Q28
OR((Q379160,P17,c(Q15617994)), (Q208807,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q379160
relation P17
action find
entity Q208807
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q379160', 'P17', {'concept': 'Q15617994'}], ['Q208807', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q379160 property:P17 ?t } UNION { resource:Q208807 property:P17 ?t } } . ?t rdf:type ontology:Q15617994 }
Colombia France Venezuela Brazil Suriname Guyana Hungary
Which administrative territories are Kunszentmárton or Guiana Shield located in
Colombia France Venezuela Brazil Suriname Guyana Hungary
action filter_type
action union
action find
entity Kunszentmárton
relation country
action find
entity Guiana Shield
relation country
type designation for an administrative territorial entity
{'OR': [['Kunszentmárton', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Guiana Shield', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Kunszentmárton property:country ?t } UNION { resource:Guiana_Shield property:country ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]