Simple Question (Direct)
Simple Question
Q2068590
P106
Q12737077
USER
Which occupation is the profession of Costuras ?
(Q2068590,P106,c(Q12737077))
action filter_type
action find
entity Q2068590
relation P106
type Q12737077
['Q2068590', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q2068590 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Costuras
action filter_type
action find
entity Costuras
relation occupation
type occupation
['Costuras', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Costuras property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q2068590,P106,c(Q12737077))
action filter_type
action find
entity Q2068590
relation P106
type Q12737077
[ANSWER] is the profession of Costuras
['Q2068590', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q2068590 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
association football player
Association football player is the profession of Costuras
association football player
action filter_type
action find
entity Costuras
relation occupation
type occupation
['Costuras', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Costuras property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2068590
P27
Q15617994
USER
Which administrative territory is Costuras a civilian of ?
(Q2068590,P27,c(Q15617994))
action filter_type
action find
entity Q2068590
relation P27
type Q15617994
['Q2068590', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q2068590 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Costuras
action filter_type
action find
entity Costuras
relation country of citizenship
type designation for an administrative territorial entity
['Costuras', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Costuras property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q45
SYSTEM
Portugal
Q45
(Q2068590,P27,c(Q15617994))
action filter_type
action find
entity Q2068590
relation P27
type Q15617994
Which administrative territory is Costuras a civilian of
['Q2068590', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q2068590 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Portugal
Which administrative territory is Costuras a civilian of
Portugal
action filter_type
action find
entity Costuras
relation country of citizenship
type designation for an administrative territorial entity
['Costuras', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Costuras property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2068590
P19
Q56061
USER
Which administrative territory was that person born at ?
(Q45,P19,c(Q56061))
action filter_type
action find
entity Q2068590
relation P19
type Q56061
['Q45', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q2068590 property:P19 ?l . ?l rdf:type ontology:Q56061 }
Costuras
action filter_type
action find
entity Costuras
relation place of birth
type administrative territorial entity
['Portugal', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Costuras property:place_of_birth ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1006408
SYSTEM
Sesimbra Municipality
Q1006408
(Q45,P19,c(Q56061))
action filter_type
action find
entity Q2068590
relation P19
type Q56061
That person was born in [ANSWER]
['Q45', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q2068590 property:P19 ?l . ?l rdf:type ontology:Q56061 }
Sesimbra Municipality
That person was born in Sesimbra Municipality
Sesimbra Municipality
action filter_type
action find
entity Costuras
relation place of birth
type administrative territorial entity
['Portugal', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Costuras property:place_of_birth ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1006408
P190
Q515
USER
Which cities are twin towns of that administrative territory ?
(Q1006408,P190,c(Q515))
action filter_type
action find
entity Q1006408
relation P190
type Q515
['Q1006408', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { resource:Q1006408 property:P190 ?g . ?g rdf:type ontology:Q515 }
Sesimbra Municipality
action filter_type
action find
entity Sesimbra Municipality
relation sister city
type city
['Sesimbra Municipality', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { resource:Sesimbra_Municipality property:sister_city ?g . ?g rdf:type ontology:city }
[]
city
Q587746 Q613813 Q1000056
SYSTEM
Siret, Kőszeg, Sušice
Q587746 Q613813 Q1000056
(Q1006408,P190,c(Q515))
action filter_type
action find
entity Q1006408
relation P190
type Q515
[ANSWERS] are twin towns of that administrative territory
['Q1006408', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { resource:Q1006408 property:P190 ?g . ?g rdf:type ontology:Q515 }
Siret Kőszeg Sušice
Siret, Kőszeg and Sušice are twin towns of that administrative territory
Siret Kőszeg Sušice
action filter_type
action find
entity Sesimbra Municipality
relation sister city
type city
['Sesimbra Municipality', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { resource:Sesimbra_Municipality property:sister_city ?g . ?g rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1006408
P190
Q56061
USER
How many administrative territories are twin city of Sesimbra Municipality ?
(c(Q56061),P190,Q1006408)
action count
action filter_type
action find_reverse
entity Q1006408
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q1006408']
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { ?u property:P190 resource:Q1006408 . ?u rdf:type ontology:Q56061 }
Sesimbra Municipality
action count
action filter_type
action find_reverse
entity Sesimbra Municipality
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Sesimbra Municipality']
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { ?u property:sister_city resource:Sesimbra_Municipality . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
13
Q530309 Q499318 Q15922 Q586895 Q353854 Q213898 Q954157 Q141796 Q11874 Q1009405 Q985402 Q405136 Q27678
(c(Q56061),P190,Q1006408)
action count
action filter_type
action find_reverse
entity Q1006408
relation P190
type Q56061
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q1006408']
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { ?u property:P190 resource:Q1006408 . ?u rdf:type ontology:Q56061 }
Karkkila Prienai Škofja Loka Sherborne Agros Preveza Chojna Türi Zvolen Bundoran Niederanven Tryavna Holstebro
13
action count
action filter_type
action find_reverse
entity Sesimbra Municipality
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Sesimbra Municipality']
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { ?u property:sister_city resource:Sesimbra_Municipality . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q534571
P17
Q15617994
USER
Which administrative territory does Marsaskala belong to ?
(Q534571,P17,c(Q15617994))
action filter_type
action find
entity Q534571
relation P17
type Q15617994
['Q534571', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q534571 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Marsaskala
action filter_type
action find
entity Marsaskala
relation country
type designation for an administrative territorial entity
['Marsaskala', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Marsaskala property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q233
SYSTEM
Malta
Q233
(Q534571,P17,c(Q15617994))
action filter_type
action find
entity Q534571
relation P17
type Q15617994
Marsaskala belongs to [ANSWER]
['Q534571', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q534571 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Malta
Marsaskala belongs to Malta
Malta
action filter_type
action find
entity Marsaskala
relation country
type designation for an administrative territorial entity
['Marsaskala', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Marsaskala property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5794922
Q15617994
USER
And how about Varuq?
(Q5794922,P17,c(Q15617994))
action filter_type
action find
entity Q5794922
relation P17
type Q15617994
['Q5794922', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q5794922 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Varuq
action filter_type
action find
entity Varuq
relation country
type designation for an administrative territorial entity
['Varuq', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Varuq property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q794
SYSTEM
Iran
Q794
(Q5794922,P17,c(Q15617994))
action filter_type
action find
entity Q5794922
relation P17
type Q15617994
[ANSWER]
['Q5794922', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q5794922 property:P17 ?j . ?j rdf:type ontology:Q15617994 }
Iran
Iran
action filter_type
action find
entity Varuq
relation country
type designation for an administrative territorial entity
['Varuq', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Varuq property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2342494 Q7725634
USER
How many administrative territories are the countries of origin of approximately the same number of collectables and literary works as that administrative territory ?
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q794
relation P495
type Q2342494
type Q7725634
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) ?z WHERE { { ?c property:P495 ?z . ?z rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q2342494 } UNION { ?c property:P495 ?z . ?z rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q7725634 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { ?s property:P495 resource:Q794 . { { ?s rdf:type ontology:Q2342494 } UNION { ?s rdf:type ontology:Q7725634 } } } } . FILTER ( ?j = ?f ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Iran
relation country of origin
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) ?z WHERE { { ?c property:country_of_origin ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:collectable } UNION { ?c property:country_of_origin ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:literary_work } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { ?s property:country_of_origin resource:Iran . { { ?s rdf:type ontology:collectable } UNION { ?s rdf:type ontology:literary_work } } } } . FILTER ( ?j = ?f ) }
[]
designation for an administrative territorial entity collectable literary work
SYSTEM
166
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q794
relation P495
type Q2342494
type Q7725634
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) ?z WHERE { { ?c property:P495 ?z . ?z rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q2342494 } UNION { ?c property:P495 ?z . ?z rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q7725634 } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { ?s property:P495 resource:Q794 . { { ?s rdf:type ontology:Q2342494 } UNION { ?s rdf:type ontology:Q7725634 } } } } . FILTER ( ?j = ?f ) }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
166
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Iran
relation country of origin
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) ?z WHERE { { ?c property:country_of_origin ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:collectable } UNION { ?c property:country_of_origin ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:literary_work } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { ?s property:country_of_origin resource:Iran . { { ?s rdf:type ontology:collectable } UNION { ?s rdf:type ontology:literary_work } } } } . FILTER ( ?j = ?f ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2765
P30
Q2221906
USER
Which geographic location is Gelsenkirchen situated in ?
(Q2765,P30,c(Q2221906))
action filter_type
action find
entity Q2765
relation P30
type Q2221906
['Q2765', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?k WHERE { resource:Q2765 property:P30 ?k . ?k rdf:type ontology:Q2221906 }
Gelsenkirchen
action filter_type
action find
entity Gelsenkirchen
relation continent
type geographic location
['Gelsenkirchen', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?k WHERE { resource:Gelsenkirchen property:continent ?k . ?k rdf:type ontology:geographic_location }
[]
geographic location
Q5401
SYSTEM
Eurasia
Q5401
(Q2765,P30,c(Q2221906))
action filter_type
action find
entity Q2765
relation P30
type Q2221906
Gelsenkirchen is situated in [ANSWER]
['Q2765', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?k WHERE { resource:Q2765 property:P30 ?k . ?k rdf:type ontology:Q2221906 }
Eurasia
Gelsenkirchen is situated in Eurasia
Eurasia
action filter_type
action find
entity Gelsenkirchen
relation continent
type geographic location
['Gelsenkirchen', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?k WHERE { resource:Gelsenkirchen property:continent ?k . ?k rdf:type ontology:geographic_location }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6989930
Q2221906
USER
And what about Schmidt Peak?
(Q6989930,P30,c(Q2221906))
action filter_type
action find
entity Q6989930
relation P30
type Q2221906
['Q6989930', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?t WHERE { resource:Q6989930 property:P30 ?t . ?t rdf:type ontology:Q2221906 }
Schmidt Peak
action filter_type
action find
entity Schmidt Peak
relation continent
type geographic location
['Schmidt Peak', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?t WHERE { resource:Schmidt_Peak property:continent ?t . ?t rdf:type ontology:geographic_location }
[]
geographic location
Q51
SYSTEM
Antarctica
Q51
(Q6989930,P30,c(Q2221906))
action filter_type
action find
entity Q6989930
relation P30
type Q2221906
[ANSWER]
['Q6989930', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?t WHERE { resource:Q6989930 property:P30 ?t . ?t rdf:type ontology:Q2221906 }
Antarctica
Antarctica
action filter_type
action find
entity Schmidt Peak
relation continent
type geographic location
['Schmidt Peak', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?t WHERE { resource:Schmidt_Peak property:continent ?t . ?t rdf:type ontology:geographic_location }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q46845
P1376
Q515 Q7275 Q515
USER
Which cities are the county seat of greater number of cities or states than Oelsnitz, Vogtland ?
(c(Q515),P1376,c(Q515)|c(Q7275))
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q515
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_multi_types
action find
entity Q46845
relation P1376
type Q515
type Q7275
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q515'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?p WHERE { { ?p rdf:type ontology:Q515 . ?t rdf:type ontology:Q515 . ?p property:P1376 ?t } UNION { ?p rdf:type ontology:Q515 . ?t rdf:type ontology:Q7275 . ?p property:P1376 ?t } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { { { ?o rdf:type ontology:Q515 } UNION { ?o rdf:type ontology:Q7275 } } . resource:Q46845 property:P1376 ?o } } . FILTER ( ?z > ?u ) }
Oelsnitz, Vogtland
action greater
action union
action find_tuple_counts
relation capital of
type city
type city
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_multi_types
action find
entity Oelsnitz, Vogtland
relation capital of
type city
type state
[{'concept': 'city'}, 'capital of', [{'concept': 'city'}, {'concept': 'state'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?p WHERE { { ?p rdf:type ontology:city . ?t rdf:type ontology:city . ?p property:capital_of ?t } UNION { ?p rdf:type ontology:city . ?t rdf:type ontology:state . ?p property:capital_of ?t } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { { { ?o rdf:type ontology:city } UNION { ?o rdf:type ontology:state } } . resource:Oelsnitz,_Vogtland property:capital_of ?o } } . FILTER ( ?z > ?u ) }
[]
city state city
Q1486 Q1899 Q1731
SYSTEM
Buenos Aires, Kyiv, Dresden
Q3572 Q19689 Q8131 Q27860 Q3624 Q58650 Q71305 Q18970 Q80989 Q3926 Q5838 Q1899 Q1410 Q1794 Q665 Q1486 Q220445 Q1461 Q23430 Q8684 Q3838 Q1069007 Q7568 Q1731 Q19660 Q1953 Q9005 Q1330294 Q2773 Q1854 Q308657 Q3826 Q68481 Q2936 Q7929221 Q11194 Q83247 Q11443 Q183584 Q2844 Q11725 Q73156 Q1865 Q18342086 Q72778 Q187136 Q107401 Q1761 Q2069869 Q726993 Q3919 Q1530 Q2999 Q16666
(c(Q515),P1376,c(Q515)|c(Q7275))
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q515
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_multi_types
action find
entity Q46845
relation P1376
type Q515
type Q7275
[ANSWERS] are the county seat of greater number of cities or states than Oelsnitz, Vogtland
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q515'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?p WHERE { { ?p rdf:type ontology:Q515 . ?t rdf:type ontology:Q515 . ?p property:P1376 ?t } UNION { ?p rdf:type ontology:Q515 . ?t rdf:type ontology:Q7275 . ?p property:P1376 ?t } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { { { ?o rdf:type ontology:Q515 } UNION { ?o rdf:type ontology:Q7275 } } . resource:Q46845 property:P1376 ?o } } . FILTER ( ?z > ?u ) }
Tunis Tirana Palembang Jayapura Addis Ababa Zhangjiakou Ezhou Ambon Bhopal Pretoria Kabul Kyiv Gibraltar Frankfurt Lugdunum Buenos Aires Kuching Manila Ulaanbaatar Seoul Kinshasa Washukanni Yogyakarta Dresden Bucharest Yerevan Brussels Jiankang Braunschweig Ho Chi Minh City Minas Tirith Muscat Fuzhou Oldenburg Vijaya Sarajevo Braga Kediri Lanzhou Brasília Chongqing Linfen Kuala Lumpur Oyo-Ile Taiyuan Luoyang Sivas Dublin Edoras Cotabato City Gaborone Baghdad Würzburg Nanjing
Buenos Aires, Kyiv and Dresden are the county seat of greater number of cities or states than Oelsnitz, Vogtland
Buenos Aires Kyiv Dresden
action greater
action union
action find_tuple_counts
relation capital of
type city
type city
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_multi_types
action find
entity Oelsnitz, Vogtland
relation capital of
type city
type state
[{'concept': 'city'}, 'capital of', [{'concept': 'city'}, {'concept': 'state'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) ?p WHERE { { ?p rdf:type ontology:city . ?t rdf:type ontology:city . ?p property:capital_of ?t } UNION { ?p rdf:type ontology:city . ?t rdf:type ontology:state . ?p property:capital_of ?t } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { { { ?o rdf:type ontology:city } UNION { ?o rdf:type ontology:state } } . resource:Oelsnitz,_Vogtland property:capital_of ?o } } . FILTER ( ?z > ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q104125
P1376
Q515 Q7275 Q515
USER
And also tell me about Lucena?
(c(Q515),P1376,c(Q515)|c(Q7275))
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q515
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_multi_types
action find
entity Q104125
relation P1376
type Q515
type Q7275
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q515'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?g WHERE { VALUES ( ?i ) { ( ontology:Q515 ) ( ontology:Q7275 ) } . ?a rdf:type ?i } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { resource:Q104125 property:P1376 ?x . { { ?x rdf:type ontology:Q515 } UNION { ?x rdf:type ontology:Q7275 } } } } . FILTER ( ?p > ?w ) }
Lucena
action greater
action union
action find_tuple_counts
relation capital of
type city
type city
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_multi_types
action find
entity Lucena
relation capital of
type city
type state
[{'concept': 'city'}, 'capital of', [{'concept': 'city'}, {'concept': 'state'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?g WHERE { VALUES ( ?i ) { ( ontology:city ) ( ontology:state ) } . ?a rdf:type ?i } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { resource:Lucena property:capital_of ?x . { { ?x rdf:type ontology:city } UNION { ?x rdf:type ontology:state } } } } . FILTER ( ?p > ?w ) }
[]
city state city
Q1486 Q1899 Q1731
SYSTEM
Buenos Aires, Kyiv, Dresden
Q3572 Q19689 Q8131 Q27860 Q3624 Q58650 Q71305 Q18970 Q80989 Q3926 Q5838 Q1899 Q1410 Q1794 Q665 Q1486 Q220445 Q1461 Q23430 Q8684 Q3838 Q1069007 Q7568 Q1731 Q19660 Q1953 Q9005 Q1330294 Q2773 Q1854 Q308657 Q3826 Q68481 Q2936 Q7929221 Q11194 Q83247 Q11443 Q183584 Q2844 Q11725 Q73156 Q1865 Q18342086 Q72778 Q187136 Q107401 Q1761 Q2069869 Q726993 Q3919 Q1530 Q2999 Q16666
(c(Q515),P1376,c(Q515)|c(Q7275))
action greater
action union
action find_tuple_counts
relation P1376
type Q515
type Q515
action find_tuple_counts
relation P1376
type Q515
type Q7275
action count
action filter_multi_types
action find
entity Q104125
relation P1376
type Q515
type Q7275
[ANSWERS]
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q515'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?g WHERE { VALUES ( ?i ) { ( ontology:Q515 ) ( ontology:Q7275 ) } . ?a rdf:type ?i } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { resource:Q104125 property:P1376 ?x . { { ?x rdf:type ontology:Q515 } UNION { ?x rdf:type ontology:Q7275 } } } } . FILTER ( ?p > ?w ) }
Tunis Tirana Palembang Jayapura Addis Ababa Zhangjiakou Ezhou Ambon Bhopal Pretoria Kabul Kyiv Gibraltar Frankfurt Lugdunum Buenos Aires Kuching Manila Ulaanbaatar Seoul Kinshasa Washukanni Yogyakarta Dresden Bucharest Yerevan Brussels Jiankang Braunschweig Ho Chi Minh City Minas Tirith Muscat Fuzhou Oldenburg Vijaya Sarajevo Braga Kediri Lanzhou Brasília Chongqing Linfen Kuala Lumpur Oyo-Ile Taiyuan Luoyang Sivas Dublin Edoras Cotabato City Gaborone Baghdad Würzburg Nanjing
Buenos Aires Kyiv Dresden
action greater
action union
action find_tuple_counts
relation capital of
type city
type city
action find_tuple_counts
relation capital of
type city
type state
action count
action filter_multi_types
action find
entity Lucena
relation capital of
type city
type state
[{'concept': 'city'}, 'capital of', [{'concept': 'city'}, {'concept': 'state'}]]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?g WHERE { VALUES ( ?i ) { ( ontology:city ) ( ontology:state ) } . ?a rdf:type ?i } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { resource:Lucena property:capital_of ?x . { { ?x rdf:type ontology:city } UNION { ?x rdf:type ontology:state } } } } . FILTER ( ?p > ?w ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P1376
Q1267632 Q7275
USER
How many raions of Ukraine and states have that city have their center of administration ?
(Q1899,P1376,c(Q1267632)) (Q1899,P1376,c(Q7275)) (Q1486,P1376,c(Q1267632)) (Q1486,P1376,c(Q7275)) (Q1899,P1376,c(Q1267632)) (Q1899,P1376,c(Q7275)) (Q1731,P1376,c(Q1267632)) (Q1731,P1376,c(Q7275))
['Q1899', 'P1376', {'concept': 'Q1267632'}] ['Q1899', 'P1376', {'concept': 'Q7275'}] ['Q1486', 'P1376', {'concept': 'Q1267632'}] ['Q1486', 'P1376', {'concept': 'Q7275'}] ['Q1899', 'P1376', {'concept': 'Q1267632'}] ['Q1899', 'P1376', {'concept': 'Q7275'}] ['Q1731', 'P1376', {'concept': 'Q1267632'}] ['Q1731', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q4512420 property:P1376 ?z } UNION { resource:Q4512420 property:P1376 ?y } UNION { resource:Q2101554 property:P1376 ?z } UNION { resource:Q2101554 property:P1376 ?y } UNION { resource:Q4512420 property:P1376 ?z } UNION { resource:Q4512420 property:P1376 ?y } UNION { resource:Q1731 property:P1376 ?z } UNION { resource:Q1731 property:P1376 ?y } } . ?z rdf:type ontology:Q1267632 . ?y rdf:type ontology:Q7275 }
['Kyiv', 'capital of', {'concept': 'raion of Ukraine'}] ['Kyiv', 'capital of', {'concept': 'state'}] ['Buenos Aires', 'capital of', {'concept': 'raion of Ukraine'}] ['Buenos Aires', 'capital of', {'concept': 'state'}] ['Kyiv', 'capital of', {'concept': 'raion of Ukraine'}] ['Kyiv', 'capital of', {'concept': 'state'}] ['Dresden', 'capital of', {'concept': 'raion of Ukraine'}] ['Dresden', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Kyiv property:capital_of ?z } UNION { resource:Kyiv property:capital_of ?y } UNION { resource:Buenos_Aires property:capital_of ?z } UNION { resource:Buenos_Aires property:capital_of ?y } UNION { resource:Kyiv property:capital_of ?z } UNION { resource:Kyiv property:capital_of ?y } UNION { resource:Dresden property:capital_of ?z } UNION { resource:Dresden property:capital_of ?y } } . ?z rdf:type ontology:raion_of_Ukraine . ?y rdf:type ontology:state }
[]
raion of Ukraine state
Quantitative|Count|Mult. entity type|Clarification
Q1899
SYSTEM
Did you mean Kyiv ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q4512420 property:P1376 ?z } UNION { resource:Q4512420 property:P1376 ?y } UNION { resource:Q2101554 property:P1376 ?z } UNION { resource:Q2101554 property:P1376 ?y } UNION { resource:Q4512420 property:P1376 ?z } UNION { resource:Q4512420 property:P1376 ?y } UNION { resource:Q1731 property:P1376 ?z } UNION { resource:Q1731 property:P1376 ?y } } . ?z rdf:type ontology:Q1267632 . ?y rdf:type ontology:Q7275 }
Did you mean Kyiv ?
Kyiv
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Kyiv property:capital_of ?z } UNION { resource:Kyiv property:capital_of ?y } UNION { resource:Buenos_Aires property:capital_of ?z } UNION { resource:Buenos_Aires property:capital_of ?y } UNION { resource:Kyiv property:capital_of ?z } UNION { resource:Kyiv property:capital_of ?y } UNION { resource:Dresden property:capital_of ?z } UNION { resource:Dresden property:capital_of ?y } } . ?z rdf:type ontology:raion_of_Ukraine . ?y rdf:type ontology:state }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q1899,P1376,c(Q1267632)) (Q1899,P1376,c(Q7275)) (Q1486,P1376,c(Q1267632)) (Q1486,P1376,c(Q7275)) (Q1899,P1376,c(Q1267632)) (Q1899,P1376,c(Q7275)) (Q1731,P1376,c(Q1267632)) (Q1731,P1376,c(Q7275))
['Q1899', 'P1376', {'concept': 'Q1267632'}] ['Q1899', 'P1376', {'concept': 'Q7275'}] ['Q1486', 'P1376', {'concept': 'Q1267632'}] ['Q1486', 'P1376', {'concept': 'Q7275'}] ['Q1899', 'P1376', {'concept': 'Q1267632'}] ['Q1899', 'P1376', {'concept': 'Q7275'}] ['Q1731', 'P1376', {'concept': 'Q1267632'}] ['Q1731', 'P1376', {'concept': 'Q7275'}]
['Kyiv', 'capital of', {'concept': 'raion of Ukraine'}] ['Kyiv', 'capital of', {'concept': 'state'}] ['Buenos Aires', 'capital of', {'concept': 'raion of Ukraine'}] ['Buenos Aires', 'capital of', {'concept': 'state'}] ['Kyiv', 'capital of', {'concept': 'raion of Ukraine'}] ['Kyiv', 'capital of', {'concept': 'state'}] ['Dresden', 'capital of', {'concept': 'raion of Ukraine'}] ['Dresden', 'capital of', {'concept': 'state'}]
[]
SYSTEM
1 raions of Ukraine and 3 states
Q1108445 Q133356 Q1508143 Q2996231
(Q1899,P1376,c(Q1267632)) (Q1899,P1376,c(Q7275)) (Q1486,P1376,c(Q1267632)) (Q1486,P1376,c(Q7275)) (Q1899,P1376,c(Q1267632)) (Q1899,P1376,c(Q7275)) (Q1731,P1376,c(Q1267632)) (Q1731,P1376,c(Q7275))
[ANSWER]
['Q1899', 'P1376', {'concept': 'Q1267632'}] ['Q1899', 'P1376', {'concept': 'Q7275'}] ['Q1486', 'P1376', {'concept': 'Q1267632'}] ['Q1486', 'P1376', {'concept': 'Q7275'}] ['Q1899', 'P1376', {'concept': 'Q1267632'}] ['Q1899', 'P1376', {'concept': 'Q7275'}] ['Q1731', 'P1376', {'concept': 'Q1267632'}] ['Q1731', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q4512420 property:P1376 ?z } UNION { resource:Q4512420 property:P1376 ?y } UNION { resource:Q2101554 property:P1376 ?z } UNION { resource:Q2101554 property:P1376 ?y } UNION { resource:Q4512420 property:P1376 ?z } UNION { resource:Q4512420 property:P1376 ?y } UNION { resource:Q1731 property:P1376 ?z } UNION { resource:Q1731 property:P1376 ?y } } . ?z rdf:type ontology:Q1267632 . ?y rdf:type ontology:Q7275 }
Kievan Rus' Ukrainian Soviet Socialist Republic Ukrainian State Kiev-Sviatoshyn Raion
1 raions of Ukraine and 3 states
['Kyiv', 'capital of', {'concept': 'raion of Ukraine'}] ['Kyiv', 'capital of', {'concept': 'state'}] ['Buenos Aires', 'capital of', {'concept': 'raion of Ukraine'}] ['Buenos Aires', 'capital of', {'concept': 'state'}] ['Kyiv', 'capital of', {'concept': 'raion of Ukraine'}] ['Kyiv', 'capital of', {'concept': 'state'}] ['Dresden', 'capital of', {'concept': 'raion of Ukraine'}] ['Dresden', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Kyiv property:capital_of ?z } UNION { resource:Kyiv property:capital_of ?y } UNION { resource:Buenos_Aires property:capital_of ?z } UNION { resource:Buenos_Aires property:capital_of ?y } UNION { resource:Kyiv property:capital_of ?z } UNION { resource:Kyiv property:capital_of ?y } UNION { resource:Dresden property:capital_of ?z } UNION { resource:Dresden property:capital_of ?y } } . ?z rdf:type ontology:raion_of_Ukraine . ?y rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1899
P138
Q6619679
USER
Which fictional humanoid is namesake of that city ?
action filter_type
action find
entity Q1899
relation P138
type Q6619679
SELECT DISTINCT ?v WHERE { resource:Q1899 property:P138 ?v . ?v rdf:type ontology:Q6619679 }
Kyiv
action filter_type
action find
entity Kyiv
relation named after
type fictional humanoid
SELECT DISTINCT ?v WHERE { resource:Kyiv property:named_after ?v . ?v rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q723160
SYSTEM
Kyi, Shchek and Khoryv
Q723160
action filter_type
action find
entity Q1899
relation P138
type Q6619679
Of [ANSWER] is namesake of that city
SELECT DISTINCT ?v WHERE { resource:Q1899 property:P138 ?v . ?v rdf:type ontology:Q6619679 }
Kyi, Shchek and Khoryv
Of Kyi, Shchek and Khoryv is namesake of that city
Kyi, Shchek and Khoryv
action filter_type
action find
entity Kyiv
relation named after
type fictional humanoid
SELECT DISTINCT ?v WHERE { resource:Kyiv property:named_after ?v . ?v rdf:type ontology:fictional_humanoid }
[]