Simple Question (Direct)
Simple Question
Q207408
P1376
Q1162835
USER
Which district of Hungary has Vác has its first city ?
(Q207408,P1376,c(Q1162835))
action filter_type
action find
entity Q207408
relation P1376
type Q1162835
['Q207408', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?e WHERE { resource:Q207408 property:P1376 ?e . ?e rdf:type ontology:Q1162835 }
Vác
action filter_type
action find
entity Vác
relation capital of
type district of Hungary
['Vác', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?e WHERE { resource:Vác property:capital_of ?e . ?e rdf:type ontology:district_of_Hungary }
[]
district of Hungary
Q742957
SYSTEM
Vác  District
Q742957
(Q207408,P1376,c(Q1162835))
action filter_type
action find
entity Q207408
relation P1376
type Q1162835
Vác District has Vác has its first city
['Q207408', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?e WHERE { resource:Q207408 property:P1376 ?e . ?e rdf:type ontology:Q1162835 }
Vác  District
Vác District has Vác has its first city
Vác  District
action filter_type
action find
entity Vác
relation capital of
type district of Hungary
['Vác', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?e WHERE { resource:Vác property:capital_of ?e . ?e rdf:type ontology:district_of_Hungary }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q207408
P190
Q20667921
USER
Which french administrative division is partner town of Vác ?
(Q207408,P190,c(Q20667921))
action filter_type
action find
entity Q207408
relation P190
type Q20667921
['Q207408', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?h WHERE { resource:Q207408 property:P190 ?h . ?h rdf:type ontology:Q20667921 }
Vác
action filter_type
action find
entity Vác
relation sister city
type type of french administrative division
['Vác', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?h WHERE { resource:Vác property:sister_city ?h . ?h rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q271654
SYSTEM
Deuil-la-Barre
Q271654
(Q207408,P190,c(Q20667921))
action filter_type
action find
entity Q207408
relation P190
type Q20667921
[ANSWER] is partner town of Vác
['Q207408', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?h WHERE { resource:Q207408 property:P190 ?h . ?h rdf:type ontology:Q20667921 }
Deuil-la-Barre
Deuil-la-Barre is partner town of Vác
Deuil-la-Barre
action filter_type
action find
entity Vác
relation sister city
type type of french administrative division
['Vác', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?h WHERE { resource:Vác property:sister_city ?h . ?h rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q271654
P36
Q20667921
USER
Which french administrative division contains that one as its capital ?
(c(Q20667921),P36,Q271654)
action filter_type
action find_reverse
entity Q271654
relation P36
type Q20667921
[{'concept': 'Q20667921'}, 'P36', 'Q271654']
SELECT DISTINCT ?t WHERE { ?t property:P36 resource:Q271654 . ?t rdf:type ontology:Q20667921 }
Deuil-la-Barre
action filter_type
action find_reverse
entity Deuil-la-Barre
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Deuil-la-Barre']
SELECT DISTINCT ?t WHERE { ?t property:capital resource:Deuil-la-Barre . ?t rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q19945025
SYSTEM
canton of Deuil-la-Barre
Q19945025
(c(Q20667921),P36,Q271654)
action filter_type
action find_reverse
entity Q271654
relation P36
type Q20667921
The [ANSWER] contains that one as its capital
[{'concept': 'Q20667921'}, 'P36', 'Q271654']
SELECT DISTINCT ?t WHERE { ?t property:P36 resource:Q271654 . ?t rdf:type ontology:Q20667921 }
canton of Deuil-la-Barre
The canton of Deuil-la-Barre contains that one as its capital
canton of Deuil-la-Barre
action filter_type
action find_reverse
entity Deuil-la-Barre
relation capital
type type of french administrative division
[{'concept': 'type of french administrative division'}, 'capital', 'Deuil-la-Barre']
SELECT DISTINCT ?t WHERE { ?t property:capital resource:Deuil-la-Barre . ?t rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q207408
P17
Q15617994
USER
Which administrative territory does Vác belong to ?
(Q207408,P17,c(Q15617994))
action filter_type
action find
entity Q207408
relation P17
type Q15617994
['Q207408', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q207408 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Vác
action filter_type
action find
entity Vác
relation country
type designation for an administrative territorial entity
['Vác', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Vác property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
(Q207408,P17,c(Q15617994))
action filter_type
action find
entity Q207408
relation P17
type Q15617994
Vác belongs to [ANSWER]
['Q207408', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q207408 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Hungary
Vác belongs to Hungary
Hungary
action filter_type
action find
entity Vác
relation country
type designation for an administrative territorial entity
['Vác', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Vác property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q193277
Q15617994
USER
And how about Revda?
(Q193277,P17,c(Q15617994))
action filter_type
action find
entity Q193277
relation P17
type Q15617994
['Q193277', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q193277 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Revda
action filter_type
action find
entity Revda
relation country
type designation for an administrative territorial entity
['Revda', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Revda property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
(Q193277,P17,c(Q15617994))
action filter_type
action find
entity Q193277
relation P17
type Q15617994
[ANSWER]
['Q193277', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q193277 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Russia
Russia
action filter_type
action find
entity Revda
relation country
type designation for an administrative territorial entity
['Revda', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Revda property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q159 Q23530
P6
Q502895
USER
Does Dmitry Medvedev have that administrative territory as its head of government ?
(Q159,P6,Q23530)
action is_in
entity Q23530
action find
entity Q159
relation P6
['Q159', 'P6', 'Q23530']
ASK WHERE { resource:Q159 property:P6 resource:Q23530 }
Russia Dmitry Medvedev
action is_in
entity Dmitry Medvedev
action find
entity Russia
relation head of government
['Russia', 'head of government', 'Dmitry Medvedev']
ASK WHERE { resource:Russia property:head_of_government resource:Dmitry_Medvedev }
[]
common name
SYSTEM
YES
(Q159,P6,Q23530)
action is_in
entity Q23530
action find
entity Q159
relation P6
[ANSWER]
['Q159', 'P6', 'Q23530']
ASK WHERE { resource:Q159 property:P6 resource:Q23530 }
Yes
action is_in
entity Dmitry Medvedev
action find
entity Russia
relation head of government
['Russia', 'head of government', 'Dmitry Medvedev']
ASK WHERE { resource:Russia property:head_of_government resource:Dmitry_Medvedev }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P85
Q484692 Q7725634 Q15617994
USER
How many administrative territories have atleast 1 hymns or literary works as their national anthem ?
(c(Q15617994),P85,c(Q484692)|c(Q7725634))
action count
action atleast
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
value 1
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?k ) WHERE { { ?n property:P85 ?f . ?n rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q484692 } UNION { ?n property:P85 ?f . ?n rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q7725634 } } GROUP BY ?n } . FILTER ( ?k >= 1 ) }
action count
action atleast
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?k ) WHERE { { ?n property:anthem ?f . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:hymn } UNION { ?n property:anthem ?f . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:literary_work } } GROUP BY ?n } . FILTER ( ?k >= 1 ) }
[]
hymn literary work designation for an administrative territorial entity
SYSTEM
184
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 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q779011 Q794 Q954 Q889 Q884 Q881 Q739 Q826 Q796 Q241 Q242 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 Q1045 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(Q484692)|c(Q7725634))
action count
action atleast
action union
action find_tuple_counts
relation P85
type Q15617994
type Q484692
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?k ) WHERE { { ?n property:P85 ?f . ?n rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q484692 } UNION { ?n property:P85 ?f . ?n rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q7725634 } } GROUP BY ?n } . FILTER ( ?k >= 1 ) }
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 Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Principality of Montenegro Iran Zimbabwe Afghanistan South Korea Vietnam Colombia Maldives Iraq Cuba Belize 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 Somalia 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
184
action count
action atleast
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?k ) WHERE { { ?n property:anthem ?f . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:hymn } UNION { ?n property:anthem ?f . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:literary_work } } GROUP BY ?n } . FILTER ( ?k >= 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q12158836 Q742957
P1376 P1383
Q515
USER
Which cities are the capital of Vác  District or contain settlement Suseni ?
OR((c(Q515),P1376,Q742957), (c(Q515),P1383,Q12158836))
action filter_type
action union
action find_reverse
entity Q742957
relation P1376
action find_reverse
entity Q12158836
relation P1383
type Q515
{'OR': [[{'concept': 'Q515'}, 'P1376', 'Q742957'], [{'concept': 'Q515'}, 'P1383', 'Q12158836']]}
SELECT DISTINCT ?y WHERE { { { ?y property:P1376 resource:Q742957 } UNION { ?y property:P1383 resource:Q12158836 } } . ?y rdf:type ontology:Q515 }
Suseni Vác  District
action filter_type
action union
action find_reverse
entity Vác  District
relation capital of
action find_reverse
entity Suseni
relation contains settlement
type city
{'OR': [[{'concept': 'city'}, 'capital of', 'Vác  District'], [{'concept': 'city'}, 'contains settlement', 'Suseni']]}
SELECT DISTINCT ?y WHERE { { { ?y property:capital_of resource:Vác__District } UNION { ?y property:contains_settlement resource:Suseni } } . ?y rdf:type ontology:city }
[]
city
Q207408 Q834101
SYSTEM
Vác, Bolintin-Vale
Q207408 Q834101
OR((c(Q515),P1376,Q742957), (c(Q515),P1383,Q12158836))
action filter_type
action union
action find_reverse
entity Q742957
relation P1376
action find_reverse
entity Q12158836
relation P1383
type Q515
[ANSWERS] are the capital of Vác District or contain settlement Suseni
{'OR': [[{'concept': 'Q515'}, 'P1376', 'Q742957'], [{'concept': 'Q515'}, 'P1383', 'Q12158836']]}
SELECT DISTINCT ?y WHERE { { { ?y property:P1376 resource:Q742957 } UNION { ?y property:P1383 resource:Q12158836 } } . ?y rdf:type ontology:Q515 }
Vác Bolintin-Vale
Vác and Bolintin-Vale are the capital of Vác District or contain settlement Suseni
Vác Bolintin-Vale
action filter_type
action union
action find_reverse
entity Vác  District
relation capital of
action find_reverse
entity Suseni
relation contains settlement
type city
{'OR': [[{'concept': 'city'}, 'capital of', 'Vác  District'], [{'concept': 'city'}, 'contains settlement', 'Suseni']]}
SELECT DISTINCT ?y WHERE { { { ?y property:capital_of resource:Vác__District } UNION { ?y property:contains_settlement resource:Suseni } } . ?y rdf:type ontology:city }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q26382256 Q12158836
P17
Q15617994
USER
Which administrative territories are Suseni or The Red House present in ?
OR((Q12158836,P17,c(Q15617994)), (Q26382256,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q12158836
relation P17
action find
entity Q26382256
relation P17
type Q15617994
{'OR': [['Q12158836', 'P17', {'concept': 'Q15617994'}], ['Q26382256', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q12158836 property:P17 ?h } UNION { resource:Q26382256 property:P17 ?h } } . ?h rdf:type ontology:Q15617994 }
The Red House Suseni
action filter_type
action union
action find
entity Suseni
relation country
action find
entity The Red House
relation country
type designation for an administrative territorial entity
{'OR': [['Suseni', 'country', {'concept': 'designation for an administrative territorial entity'}], ['The Red House', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Suseni property:country ?h } UNION { resource:The_Red_House property:country ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q218 Q145
SYSTEM
Romania, United Kingdom
Q218 Q145
OR((Q12158836,P17,c(Q15617994)), (Q26382256,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q12158836
relation P17
action find
entity Q26382256
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q12158836', 'P17', {'concept': 'Q15617994'}], ['Q26382256', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q12158836 property:P17 ?h } UNION { resource:Q26382256 property:P17 ?h } } . ?h rdf:type ontology:Q15617994 }
Romania United Kingdom
Which administrative territories are Suseni or The Red House present in
Romania United Kingdom
action filter_type
action union
action find
entity Suseni
relation country
action find
entity The Red House
relation country
type designation for an administrative territorial entity
{'OR': [['Suseni', 'country', {'concept': 'designation for an administrative territorial entity'}], ['The Red House', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Suseni property:country ?h } UNION { resource:The_Red_House property:country ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]