Simple Question (Direct)
Simple Question
Q19519881
P19
Q56061
USER
Which administrative territory was Marko Ristić (footballer, born 1997) born at ?
(Q19519881,P19,c(Q56061))
action filter_type
action find
entity Q19519881
relation P19
type Q56061
['Q19519881', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q19519881 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Marko Ristić (footballer, born 1997)
action filter_type
action find
entity Marko Ristić (footballer, born 1997)
relation place of birth
type administrative territorial entity
['Marko Ristić (footballer, born 1997)', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Marko_Ristić_(footballer,_born_1997) property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q201442
SYSTEM
Kruševac
Q201442
(Q19519881,P19,c(Q56061))
action filter_type
action find
entity Q19519881
relation P19
type Q56061
[ANSWER] was Marko Ristić (footballer, born 1997) born at
['Q19519881', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q19519881 property:P19 ?d . ?d rdf:type ontology:Q56061 }
Kruševac
Kruševac was Marko Ristić (footballer, born 1997) born at
Kruševac
action filter_type
action find
entity Marko Ristić (footballer, born 1997)
relation place of birth
type administrative territorial entity
['Marko Ristić (footballer, born 1997)', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Marko_Ristić_(footballer,_born_1997) property:place_of_birth ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q201442
P36
Q648681
USER
Which district of Serbia contains that administrative territory as its capital ?
(c(Q648681),P36,Q201442)
action filter_type
action find_reverse
entity Q201442
relation P36
type Q648681
[{'concept': 'Q648681'}, 'P36', 'Q201442']
SELECT DISTINCT ?y WHERE { ?y property:P36 resource:Q201442 . ?y rdf:type ontology:Q648681 }
Kruševac
action filter_type
action find_reverse
entity Kruševac
relation capital
type district of Serbia
[{'concept': 'district of Serbia'}, 'capital', 'Kruševac']
SELECT DISTINCT ?y WHERE { ?y property:capital resource:Kruševac . ?y rdf:type ontology:district_of_Serbia }
[]
district of Serbia
Q1043446
SYSTEM
Rasina District
Q1043446
(c(Q648681),P36,Q201442)
action filter_type
action find_reverse
entity Q201442
relation P36
type Q648681
District [ANSWER] contains that administrative territory as its capital
[{'concept': 'Q648681'}, 'P36', 'Q201442']
SELECT DISTINCT ?y WHERE { ?y property:P36 resource:Q201442 . ?y rdf:type ontology:Q648681 }
Rasina District
District Rasina District contains that administrative territory as its capital
Rasina District
action filter_type
action find_reverse
entity Kruševac
relation capital
type district of Serbia
[{'concept': 'district of Serbia'}, 'capital', 'Kruševac']
SELECT DISTINCT ?y WHERE { ?y property:capital resource:Kruševac . ?y rdf:type ontology:district_of_Serbia }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q201442
P190
Q15617994
USER
Which administrative territory is sister town of Kruševac ?
(Q201442,P190,c(Q15617994))
action filter_type
action find
entity Q201442
relation P190
type Q15617994
['Q201442', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q201442 property:P190 ?g . ?g rdf:type ontology:Q15617994 }
Kruševac
action filter_type
action find
entity Kruševac
relation sister city
type designation for an administrative territorial entity
['Kruševac', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Kruševac property:sister_city ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q13376
SYSTEM
Pistoia
Q13376
(Q201442,P190,c(Q15617994))
action filter_type
action find
entity Q201442
relation P190
type Q15617994
[ANSWER] is sister town of Kruševac
['Q201442', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q201442 property:P190 ?g . ?g rdf:type ontology:Q15617994 }
Pistoia
Pistoia is sister town of Kruševac
Pistoia
action filter_type
action find
entity Kruševac
relation sister city
type designation for an administrative territorial entity
['Kruševac', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Kruševac property:sister_city ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q201442
Q56061
USER
And which administrative territory?
(Q201442,P190,c(Q56061))
action filter_type
action find
entity Q201442
relation P190
type Q56061
['Q201442', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q201442 property:P190 ?q }
Kruševac
action filter_type
action find
entity Kruševac
relation sister city
type administrative territorial entity
['Kruševac', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Kruševac property:sister_city ?q }
[]
administrative territorial entity
Q914 Q205832 Q2746
SYSTEM
Volgograd, Corfu, Ryazan
Q205832 Q175742 Q2746 Q152406 Q914
(Q201442,P190,c(Q56061))
action filter_type
action find
entity Q201442
relation P190
type Q56061
[ANSWERS]
['Q201442', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q56061 . resource:Q201442 property:P190 ?q }
Corfu Odintsovo Ryazan Kiryat Gat Volgograd
Volgograd Corfu Ryazan
action filter_type
action find
entity Kruševac
relation sister city
type administrative territorial entity
['Kruševac', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:administrative_territorial_entity . resource:Kruševac property:sister_city ?q }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q201442
P190
Q56061
USER
Are Kruševac twin city of those ones ?
(Q201442,P190,Q914) (Q201442,P190,Q205832) (Q201442,P190,Q2746)
action is_in
entity prev_answer
action find
entity Q201442
relation P190
['Q201442', 'P190', 'Q914'] ['Q201442', 'P190', 'Q205832'] ['Q201442', 'P190', 'Q2746']
ASK WHERE { resource:Q201442 property:P190 ?d . VALUES ( ?d ) { ( resource:Q205832 ) ( resource:Q175742 ) ( resource:Q2746 ) } }
Kruševac
action is_in
entity prev_answer
action find
entity Kruševac
relation sister city
['Kruševac', 'sister city', 'Volgograd'] ['Kruševac', 'sister city', 'Corfu'] ['Kruševac', 'sister city', 'Ryazan']
ASK WHERE { resource:Kruševac property:sister_city ?d . VALUES ( ?d ) { ( resource:Corfu ) ( resource:Odintsovo ) ( resource:Ryazan ) } }
[]
administrative territorial entity
SYSTEM
YES
(Q201442,P190,Q914) (Q201442,P190,Q205832) (Q201442,P190,Q2746)
action is_in
entity prev_answer
action find
entity Q201442
relation P190
[ANSWER]
['Q201442', 'P190', 'Q914'] ['Q201442', 'P190', 'Q205832'] ['Q201442', 'P190', 'Q2746']
ASK WHERE { resource:Q201442 property:P190 ?d . VALUES ( ?d ) { ( resource:Q205832 ) ( resource:Q175742 ) ( resource:Q2746 ) } }
Yes
action is_in
entity prev_answer
action find
entity Kruševac
relation sister city
['Kruševac', 'sister city', 'Volgograd'] ['Kruševac', 'sister city', 'Corfu'] ['Kruševac', 'sister city', 'Ryazan']
ASK WHERE { resource:Kruševac property:sister_city ?d . VALUES ( ?d ) { ( resource:Corfu ) ( resource:Odintsovo ) ( resource:Ryazan ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1043446 Q564492
P17
Q15617994
USER
Is Rasina District situated in Halbs ?
(Q1043446,P17,Q564492)
action is_in
entity Q564492
action find
entity Q1043446
relation P17
['Q1043446', 'P17', 'Q564492']
ASK WHERE { resource:Q1043446 property:P17 resource:Q564492 }
Rasina District Halbs
action is_in
entity Halbs
action find
entity Rasina District
relation country
['Rasina District', 'country', 'Halbs']
ASK WHERE { resource:Rasina_District property:country resource:Halbs }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1043446,P17,Q564492)
action is_in
entity Q564492
action find
entity Q1043446
relation P17
[ANSWER]
['Q1043446', 'P17', 'Q564492']
ASK WHERE { resource:Q1043446 property:P17 resource:Q564492 }
No
action is_in
entity Halbs
action find
entity Rasina District
relation country
['Rasina District', 'country', 'Halbs']
ASK WHERE { resource:Rasina_District property:country resource:Halbs }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q205832 Q5068679 Q1015
P190
Q56061
USER
Is Corfu twin town of Chaleh-ye Kamalvand and Koper ?
(Q205832,P190,Q5068679) (Q205832,P190,Q1015)
action is_in
entity Q205832
action intersection
action find_reverse
entity Q5068679
relation P190
action find_reverse
entity Q1015
relation P190
['Q205832', 'P190', 'Q5068679'] ['Q205832', 'P190', 'Q1015']
ASK WHERE { resource:Q205832 property:P190 resource:Q1015 . resource:Q205832 property:P190 resource:Q5068679 }
Corfu Chaleh-ye Kamalvand Koper
action is_in
entity Corfu
action intersection
action find_reverse
entity Chaleh-ye Kamalvand
relation sister city
action find_reverse
entity Koper
relation sister city
['Corfu', 'sister city', 'Chaleh-ye Kamalvand'] ['Corfu', 'sister city', 'Koper']
ASK WHERE { resource:Corfu property:sister_city resource:Koper . resource:Corfu property:sister_city resource:Chaleh-ye_Kamalvand }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q205832,P190,Q5068679) (Q205832,P190,Q1015)
action is_in
entity Q205832
action intersection
action find_reverse
entity Q5068679
relation P190
action find_reverse
entity Q1015
relation P190
[ANSWER]
['Q205832', 'P190', 'Q5068679'] ['Q205832', 'P190', 'Q1015']
ASK WHERE { resource:Q205832 property:P190 resource:Q1015 . resource:Q205832 property:P190 resource:Q5068679 }
NO and YES respectively
action is_in
entity Corfu
action intersection
action find_reverse
entity Chaleh-ye Kamalvand
relation sister city
action find_reverse
entity Koper
relation sister city
['Corfu', 'sister city', 'Chaleh-ye Kamalvand'] ['Corfu', 'sister city', 'Koper']
ASK WHERE { resource:Corfu property:sister_city resource:Koper . resource:Corfu property:sister_city resource:Chaleh-ye_Kamalvand }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q13376
P47
Q15617994
USER
How many administrative territories are adjacent to Pistoia ?
(Q13376,P47,c(Q15617994))
action count
action filter_type
action find
entity Q13376
relation P47
type Q15617994
['Q13376', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Q13376 property:P47 ?q . ?q rdf:type ontology:Q15617994 }
Pistoia
action count
action filter_type
action find
entity Pistoia
relation shares border with
type designation for an administrative territorial entity
['Pistoia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Pistoia property:shares_border_with ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
12
Q102652 Q102736 Q20382 Q102725 Q94929 Q94886 Q102780 Q94983 Q102615 Q102555 Q102716 Q102706
(Q13376,P47,c(Q15617994))
action count
action filter_type
action find
entity Q13376
relation P47
type Q15617994
[ANSWER]
['Q13376', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Q13376 property:P47 ?q . ?q rdf:type ontology:Q15617994 }
Montale San Marcello Pistoiese Cantagallo Sambuca Pistoiese Lizzano in Belvedere Granaglione Serravalle Pistoiese Porretta Terme Marliana Agliana Quarrata Piteglio
12
action count
action filter_type
action find
entity Pistoia
relation shares border with
type designation for an administrative territorial entity
['Pistoia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Pistoia property:shares_border_with ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q13376
P1376
Q15089
USER
Which province of Italy has Pistoia as its county seat ?
(Q13376,P1376,c(Q15089))
action filter_type
action find
entity Q13376
relation P1376
type Q15089
['Q13376', 'P1376', {'concept': 'Q15089'}]
SELECT DISTINCT ?g WHERE { resource:Q13376 property:P1376 ?g . ?g rdf:type ontology:Q15089 }
Pistoia
action filter_type
action find
entity Pistoia
relation capital of
type province of Italy
['Pistoia', 'capital of', {'concept': 'province of Italy'}]
SELECT DISTINCT ?g WHERE { resource:Pistoia property:capital_of ?g . ?g rdf:type ontology:province_of_Italy }
[]
province of Italy
Q16245
SYSTEM
Province of Pistoia
Q16245
(Q13376,P1376,c(Q15089))
action filter_type
action find
entity Q13376
relation P1376
type Q15089
[ANSWER] has Pistoia as its county seat
['Q13376', 'P1376', {'concept': 'Q15089'}]
SELECT DISTINCT ?g WHERE { resource:Q13376 property:P1376 ?g . ?g rdf:type ontology:Q15089 }
Province of Pistoia
Province of Pistoia has Pistoia as its county seat
Province of Pistoia
action filter_type
action find
entity Pistoia
relation capital of
type province of Italy
['Pistoia', 'capital of', {'concept': 'province of Italy'}]
SELECT DISTINCT ?g WHERE { resource:Pistoia property:capital_of ?g . ?g rdf:type ontology:province_of_Italy }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q13678
Q15089
USER
And what about Agrigento?
(Q13678,P1376,c(Q15089))
action filter_type
action find
entity Q13678
relation P1376
type Q15089
['Q13678', 'P1376', {'concept': 'Q15089'}]
SELECT DISTINCT ?n WHERE { resource:Q13678 property:P1376 ?n . ?n rdf:type ontology:Q15089 }
Agrigento
action filter_type
action find
entity Agrigento
relation capital of
type province of Italy
['Agrigento', 'capital of', {'concept': 'province of Italy'}]
SELECT DISTINCT ?n WHERE { resource:Agrigento property:capital_of ?n . ?n rdf:type ontology:province_of_Italy }
[]
province of Italy
Q16112
SYSTEM
Province of Agrigento
Q16112
(Q13678,P1376,c(Q15089))
action filter_type
action find
entity Q13678
relation P1376
type Q15089
[ANSWER]
['Q13678', 'P1376', {'concept': 'Q15089'}]
SELECT DISTINCT ?n WHERE { resource:Q13678 property:P1376 ?n . ?n rdf:type ontology:Q15089 }
Province of Agrigento
Province of Agrigento
action filter_type
action find
entity Agrigento
relation capital of
type province of Italy
['Agrigento', 'capital of', {'concept': 'province of Italy'}]
SELECT DISTINCT ?n WHERE { resource:Agrigento property:capital_of ?n . ?n rdf:type ontology:province_of_Italy }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q13678 Q770813
P17
Q15617994
USER
How many administrative territories are Agrigento or Hungarian road 71 a part of ?
(Q13678,P17,c(Q15617994)) (Q770813,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q13678
relation P17
type Q15617994
action filter_type
action find
entity Q770813
relation P17
type Q15617994
['Q13678', 'P17', {'concept': 'Q15617994'}] ['Q770813', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { resource:Q13678 property:P17 ?u . ?u rdf:type ontology:Q15617994 } UNION { resource:Q770813 property:P17 ?u . ?u rdf:type ontology:Q15617994 } }
Agrigento Hungarian road 71
action count
action union
action filter_type
action find
entity Agrigento
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Hungarian road 71
relation country
type designation for an administrative territorial entity
['Agrigento', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Hungarian road 71', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { resource:Agrigento property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Hungarian_road_71 property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
SYSTEM
2
Q28 Q38
(Q13678,P17,c(Q15617994)) (Q770813,P17,c(Q15617994))
action count
action union
action filter_type
action find
entity Q13678
relation P17
type Q15617994
action filter_type
action find
entity Q770813
relation P17
type Q15617994
[ANSWER]
['Q13678', 'P17', {'concept': 'Q15617994'}] ['Q770813', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { resource:Q13678 property:P17 ?u . ?u rdf:type ontology:Q15617994 } UNION { resource:Q770813 property:P17 ?u . ?u rdf:type ontology:Q15617994 } }
Hungary Italy
2
action count
action union
action filter_type
action find
entity Agrigento
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Hungarian road 71
relation country
type designation for an administrative territorial entity
['Agrigento', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Hungarian road 71', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?z ) WHERE { { resource:Agrigento property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Hungarian_road_71 property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q794
P85
Q7725634 Q484692 Q15617994
USER
How many administrative territories have approximately the same number of literary works or hymns as their national anthem as Iran ?
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q794
relation P85
type Q7725634
type Q484692
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?r ) WHERE { VALUES ( ?b ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } . ?g rdf:type ?b } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Q794 property:P85 ?t . { { ?t rdf:type ontology:Q484692 } UNION { ?t rdf:type ontology:Q7725634 } } } } . FILTER ( ?r = ?j ) }
Iran
action count
action approx
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity Iran
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?r ) WHERE { VALUES ( ?b ) { ( ontology:hymn ) ( ontology:literary_work ) } . ?g rdf:type ?b } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Iran property:anthem ?t . { { ?t rdf:type ontology:hymn } UNION { ?t rdf:type ontology:literary_work } } } } . FILTER ( ?r = ?j ) }
[]
literary work hymn designation for an administrative territorial entity
SYSTEM
181
Q702 Q804 Q801 Q707 Q709 Q811 Q805 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q800 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q813 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q155 Q792 Q790 Q4628 Q779011 Q794 Q954 Q889 Q884 Q881 Q739 Q826 Q796 Q241 Q244 Q1019 Q153136 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1044 Q1042 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q783 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q347 Q1050 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q115 Q114 Q117 Q754 Q752 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q760 Q574 Q874 Q79 Q77 Q858 Q878 Q775 Q774 Q948 Q817 Q810 Q770 Q1014 Q1016 Q1011 Q945 Q678 Q29 Q1039 Q672 Q822 Q298 Q863 Q869 Q953
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q794
relation P85
type Q7725634
type Q484692
[ANSWER]
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?r ) WHERE { VALUES ( ?b ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } . ?g rdf:type ?b } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Q794 property:P85 ?t . { { ?t rdf:type ontology:Q484692 } UNION { ?t rdf:type ontology:Q7725634 } } } } . FILTER ( ?r = ?j ) }
Federated States of Micronesia Panama Israel Flevoland Marshall Islands Nicaragua Yemen Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Costa Rica Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Kyrgyzstan Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece Brazil El Salvador Haiti Faroe Islands Principality of Montenegro Iran Zimbabwe Afghanistan South Korea Vietnam Colombia Maldives Iraq Cuba Barbados Madagascar Habsburg Empire Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Sierra Leone Seychelles Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Honduras Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Liechtenstein Swaziland Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ethiopia Kenya Ghana Trinidad and Tobago Groningen Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar Saint Lucia East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Gelderland Guatemala Tunisia Kuwait Jordan Friesland Liberia Libya Cape Verde Togo Tonga Spain Sao Tomé and Príncipe Tuvalu Lebanon Chile Tajikistan Thailand Zambia
181
action count
action approx
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity Iran
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?y ) AS ?h ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?r ) WHERE { VALUES ( ?b ) { ( ontology:hymn ) ( ontology:literary_work ) } . ?g rdf:type ?b } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { resource:Iran property:anthem ?t . { { ?t rdf:type ontology:hymn } UNION { ?t rdf:type ontology:literary_work } } } } . FILTER ( ?r = ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1027
P85
Q7725634 Q484692 Q15617994
USER
And what about Mauritius?
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q1027
relation P85
type Q7725634
type Q484692
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) ?h WHERE { { ?h property:P85 ?d . ?d rdf:type ontology:Q484692 . ?h rdf:type ontology:Q15617994 } UNION { ?h property:P85 ?d . ?h rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q7725634 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { resource:Q1027 property:P85 ?w . { { ?w rdf:type ontology:Q7725634 } UNION { ?w rdf:type ontology:Q484692 } } } } . FILTER ( ?z = ?s ) }
Mauritius
action count
action approx
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity Mauritius
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) ?h WHERE { { ?h property:anthem ?d . ?d rdf:type ontology:hymn . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?h property:anthem ?d . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:literary_work } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { resource:Mauritius property:anthem ?w . { { ?w rdf:type ontology:literary_work } UNION { ?w rdf:type ontology:hymn } } } } . FILTER ( ?z = ?s ) }
[]
literary work hymn designation for an administrative territorial entity
SYSTEM
181
Q702 Q804 Q801 Q707 Q709 Q811 Q805 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q800 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q813 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q155 Q792 Q790 Q4628 Q779011 Q794 Q954 Q889 Q884 Q881 Q739 Q826 Q796 Q241 Q244 Q1019 Q153136 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1044 Q1042 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q783 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q815731 Q96 Q229 Q347 Q1050 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q115 Q114 Q117 Q754 Q752 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q760 Q574 Q874 Q79 Q77 Q858 Q878 Q775 Q774 Q948 Q817 Q810 Q770 Q1014 Q1016 Q1011 Q945 Q678 Q29 Q1039 Q672 Q822 Q298 Q863 Q869 Q953
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action count
action filter_multi_types
action find
entity Q1027
relation P85
type Q7725634
type Q484692
[ANSWER]
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) ?h WHERE { { ?h property:P85 ?d . ?d rdf:type ontology:Q484692 . ?h rdf:type ontology:Q15617994 } UNION { ?h property:P85 ?d . ?h rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q7725634 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { resource:Q1027 property:P85 ?w . { { ?w rdf:type ontology:Q7725634 } UNION { ?w rdf:type ontology:Q484692 } } } } . FILTER ( ?z = ?s ) }
Federated States of Micronesia Panama Israel Flevoland Marshall Islands Nicaragua Yemen Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Costa Rica Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Kyrgyzstan Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece Brazil El Salvador Haiti Faroe Islands Principality of Montenegro Iran Zimbabwe Afghanistan South Korea Vietnam Colombia Maldives Iraq Cuba Barbados Madagascar Habsburg Empire Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Sierra Leone Seychelles Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Honduras Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Mexico Cyprus Liechtenstein Swaziland Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ethiopia Kenya Ghana Trinidad and Tobago Groningen Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar Saint Lucia East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Gelderland Guatemala Tunisia Kuwait Jordan Friesland Liberia Libya Cape Verde Togo Tonga Spain Sao Tomé and Príncipe Tuvalu Lebanon Chile Tajikistan Thailand Zambia
181
action count
action approx
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action count
action filter_multi_types
action find
entity Mauritius
relation anthem
type literary work
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) ?h WHERE { { ?h property:anthem ?d . ?d rdf:type ontology:hymn . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?h property:anthem ?d . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:literary_work } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { resource:Mauritius property:anthem ?w . { { ?w rdf:type ontology:literary_work } UNION { ?w rdf:type ontology:hymn } } } } . FILTER ( ?z = ?s ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q914
P190
Q56061 Q15617994
USER
How many administrative territories and administrative territories are sister town of Volgograd ?
(c(Q56061),P190,Q914) (c(Q15617994),P190,Q914)
action count
action union
action filter_type
action find_reverse
entity Q914
relation P190
type Q56061
action filter_type
action find_reverse
entity Q914
relation P190
type Q15617994
[{'concept': 'Q56061'}, 'P190', 'Q914'] [{'concept': 'Q15617994'}, 'P190', 'Q914']
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { VALUES ( ?h ) { ( ontology:Q56061 ) ( ontology:Q15617994 ) } . ?k rdf:type ?h }
Volgograd
action count
action union
action filter_type
action find_reverse
entity Volgograd
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Volgograd
relation sister city
type designation for an administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Volgograd'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Volgograd']
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { VALUES ( ?h ) { ( ontology:administrative_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?k rdf:type ?h }
[]
administrative territorial entity designation for an administrative territorial entity
SYSTEM
19
Q3992 Q331566 Q158876 Q203619 Q49233 Q1352 Q365 Q132572 Q270656 Q8385 Q51256 Q201442 Q172 Q37320 Q495 Q160173 Q134509 Q243128 Q6225
(c(Q56061),P190,Q914) (c(Q15617994),P190,Q914)
action count
action union
action filter_type
action find_reverse
entity Q914
relation P190
type Q56061
action filter_type
action find_reverse
entity Q914
relation P190
type Q15617994
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q914'] [{'concept': 'Q15617994'}, 'P190', 'Q914']
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { VALUES ( ?h ) { ( ontology:Q56061 ) ( ontology:Q15617994 ) } . ?k rdf:type ?h }
Liège Sandanski Reinickendorf Kemi Orlando Chennai Cologne Tiraspol Płońsk Ostrava Ortona Kruševac Toronto Cleveland Turin Ruse Port Said Olevano Romano Coventry
19
action count
action union
action filter_type
action find_reverse
entity Volgograd
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Volgograd
relation sister city
type designation for an administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Volgograd'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Volgograd']
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { VALUES ( ?h ) { ( ontology:administrative_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?k rdf:type ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16112
P6
Q502895
USER
Which person is Province of Agrigento the head of goverment of ?
(Q16112,P6,c(Q502895))
action filter_type
action find
entity Q16112
relation P6
type Q502895
['Q16112', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q16112 property:P6 ?n . ?n rdf:type ontology:Q502895 }
Province of Agrigento
action filter_type
action find
entity Province of Agrigento
relation head of government
type common name
['Province of Agrigento', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Province_of_Agrigento property:head_of_government ?n . ?n rdf:type ontology:common_name }
[]
common name
Q3734322
SYSTEM
Eugenio D'Orsi
Q3734322
(Q16112,P6,c(Q502895))
action filter_type
action find
entity Q16112
relation P6
type Q502895
[ANSWER] is Province of Agrigento the head of goverment of
['Q16112', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q16112 property:P6 ?n . ?n rdf:type ontology:Q502895 }
Eugenio D'Orsi
Eugenio D'Orsi is Province of Agrigento the head of goverment of
Eugenio D'Orsi
action filter_type
action find
entity Province of Agrigento
relation head of government
type common name
['Province of Agrigento', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Province_of_Agrigento property:head_of_government ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2719337
Q502895
USER
And how about Alexandru cel Bun?
(Q2719337,P6,c(Q502895))
action filter_type
action find
entity Q2719337
relation P6
type Q502895
['Q2719337', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q2719337 property:P6 ?g . ?g rdf:type ontology:Q502895 }
Alexandru cel Bun
action filter_type
action find
entity Alexandru cel Bun
relation head of government
type common name
['Alexandru cel Bun', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Alexandru_cel_Bun property:head_of_government ?g . ?g rdf:type ontology:common_name }
[]
common name
Q12730945
SYSTEM
Ion Rotaru
Q12730945
(Q2719337,P6,c(Q502895))
action filter_type
action find
entity Q2719337
relation P6
type Q502895
[ANSWER]
['Q2719337', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q2719337 property:P6 ?g . ?g rdf:type ontology:Q502895 }
Ion Rotaru
Ion Rotaru
action filter_type
action find
entity Alexandru cel Bun
relation head of government
type common name
['Alexandru cel Bun', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Alexandru_cel_Bun property:head_of_government ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12730945
P21
Q290
USER
What is the sex of that person ?
(Q12730945,P21,c(Q290))
action filter_type
action find
entity Q12730945
relation P21
type Q290
['Q12730945', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q12730945 property:P21 ?c . ?c rdf:type ontology:Q290 }
Ion Rotaru
action filter_type
action find
entity Ion Rotaru
relation gender
type sex
['Ion Rotaru', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Ion_Rotaru property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q12730945,P21,c(Q290))
action filter_type
action find
entity Q12730945
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q12730945', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q12730945 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Ion Rotaru
relation gender
type sex
['Ion Rotaru', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Ion_Rotaru property:gender ?c . ?c rdf:type ontology:sex }
[]