Simple Question (Direct)
Simple Question
Q5907734
P108
Q3918
USER
Which university does Ian Michael work for ?
(Q5907734,P108,c(Q3918))
action filter_type
action find
entity Q5907734
relation P108
type Q3918
['Q5907734', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?o WHERE { resource:Q5907734 property:P108 ?o . ?o rdf:type ontology:Q3918 }
Ian Michael
action filter_type
action find
entity Ian Michael
relation employer
type university
['Ian Michael', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?o WHERE { resource:Ian_Michael property:employer ?o . ?o rdf:type ontology:university }
[]
university
Q34433
SYSTEM
University of Oxford
Q34433
(Q5907734,P108,c(Q3918))
action filter_type
action find
entity Q5907734
relation P108
type Q3918
Ian Michael works at [ANSWER]
['Q5907734', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?o WHERE { resource:Q5907734 property:P108 ?o . ?o rdf:type ontology:Q3918 }
University of Oxford
Ian Michael works at University of Oxford
University of Oxford
action filter_type
action find
entity Ian Michael
relation employer
type university
['Ian Michael', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?o WHERE { resource:Ian_Michael property:employer ?o . ?o rdf:type ontology:university }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q34433
P361
Q1244442
USER
Which school buildings are a portion of that university ?
(c(Q1244442),P361,Q34433)
action filter_type
action find_reverse
entity Q34433
relation P361
type Q1244442
[{'concept': 'Q1244442'}, 'P361', 'Q34433']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1244442 . ?a property:P361 resource:Q34433 }
University of Oxford
action filter_type
action find_reverse
entity University of Oxford
relation part of
type school building
[{'concept': 'school building'}, 'part of', 'University of Oxford']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:school_building . ?a property:part_of resource:University_of_Oxford }
[]
school building
Q805285 Q609646 Q1758457
SYSTEM
Balliol College, St John's College, Nuffield College
Q805285 Q5284397 Q1758457 Q609646
(c(Q1244442),P361,Q34433)
action filter_type
action find_reverse
entity Q34433
relation P361
type Q1244442
[ANSWERS] are a portion of that university
[{'concept': 'Q1244442'}, 'P361', 'Q34433']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1244442 . ?a property:P361 resource:Q34433 }
Balliol College Divinity School Nuffield College St John's College
Balliol College, St John's College and Nuffield College are a portion of that university
Balliol College St John's College Nuffield College
action filter_type
action find_reverse
entity University of Oxford
relation part of
type school building
[{'concept': 'school building'}, 'part of', 'University of Oxford']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:school_building . ?a property:part_of resource:University_of_Oxford }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34433
P159
Q515
USER
Where is the head office for University of Oxford located ?
(Q34433,P159,c(Q515))
action filter_type
action find
entity Q34433
relation P159
type Q515
['Q34433', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { resource:Q34433 property:P159 ?p . ?p rdf:type ontology:Q515 }
University of Oxford
action filter_type
action find
entity University of Oxford
relation headquarters location
type city
['University of Oxford', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { resource:University_of_Oxford property:headquarters_location ?p . ?p rdf:type ontology:city }
[]
city
Q34217
SYSTEM
Oxford
Q34217
(Q34433,P159,c(Q515))
action filter_type
action find
entity Q34433
relation P159
type Q515
The head office for University of [ANSWER] is located in [ANSWER]
['Q34433', 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?p WHERE { resource:Q34433 property:P159 ?p . ?p rdf:type ontology:Q515 }
Oxford
The head office for University of Oxford is located in Oxford
Oxford
action filter_type
action find
entity University of Oxford
relation headquarters location
type city
['University of Oxford', 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?p WHERE { resource:University_of_Oxford property:headquarters_location ?p . ?p rdf:type ontology:city }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P206
Q1267889 Q15324 Q515
USER
How many cities are located next to approximately the same number of waterways and bodies of water as that city ?
(c(Q515),P206,c(Q1267889)|c(Q15324))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q515
type Q1267889
action find_tuple_counts
relation P206
type Q515
type Q15324
action count
action filter_multi_types
action find
entity Q34217
relation P206
type Q1267889
type Q15324
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?g WHERE { { ?g property:P206 ?q . ?g rdf:type ontology:Q515 . ?q rdf:type ontology:Q1267889 } UNION { ?g property:P206 ?q . ?g rdf:type ontology:Q515 . ?q rdf:type ontology:Q15324 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Q34217 property:P206 ?d . { { ?d rdf:type ontology:Q1267889 } UNION { ?d rdf:type ontology:Q15324 } } } } . FILTER ( ?s = ?y ) }
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type city
type waterway
action find_tuple_counts
relation located next to body of water
type city
type body of water
action count
action filter_multi_types
action find
entity Oxford
relation located next to body of water
type waterway
type body of water
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?g WHERE { { ?g property:located_next_to_body_of_water ?q . ?g rdf:type ontology:city . ?q rdf:type ontology:waterway } UNION { ?g property:located_next_to_body_of_water ?q . ?g rdf:type ontology:city . ?q rdf:type ontology:body_of_water } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Oxford property:located_next_to_body_of_water ?d . { { ?d rdf:type ontology:waterway } UNION { ?d rdf:type ontology:body_of_water } } } } . FILTER ( ?s = ?y ) }
[]
waterway body of water city
SYSTEM
78
Q3075 Q1794 Q1863 Q1865 Q496499 Q3974 Q846877 Q19689 Q2966 Q34217 Q496479 Q3004 Q488869 Q827041 Q3572 Q623549 Q2865 Q4024 Q1711 Q2978 Q3806 Q2973 Q3014 Q1844 Q14821 Q3958 Q3955 Q23430 Q633272 Q2773 Q612815 Q320943 Q1858 Q320416 Q890122 Q4007 Q2706 Q7070 Q653545 Q8684 Q270704 Q2749 Q4346 Q3838 Q2833 Q3931 Q3751 Q3750 Q3200 Q3126 Q3042 Q157835 Q3046 Q3936 Q2936 Q3214 Q2100 Q1533 Q1530 Q1731 Q1953 Q5838 Q7027 Q3994 Q19660 Q11194 Q3915 Q2119 Q3069 Q1720 Q1721 Q329996 Q3904 Q695920 Q2910 Q1899 Q2999 Q2844
(c(Q515),P206,c(Q1267889)|c(Q15324))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q515
type Q1267889
action find_tuple_counts
relation P206
type Q515
type Q15324
action count
action filter_multi_types
action find
entity Q34217
relation P206
type Q1267889
type Q15324
[ANSWER]
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?g WHERE { { ?g property:P206 ?q . ?g rdf:type ontology:Q515 . ?q rdf:type ontology:Q1267889 } UNION { ?g property:P206 ?q . ?g rdf:type ontology:Q515 . ?q rdf:type ontology:Q15324 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Q34217 property:P206 ?d . { { ?d rdf:type ontology:Q1267889 } UNION { ?d rdf:type ontology:Q15324 } } } } . FILTER ( ?s = ?y ) }
Fürth Frankfurt Andorra la Vella Kuala Lumpur Kazuno Landshut Semboku Tirana Heidelberg Oxford Yokote Ingolstadt Benalmádena Beroun Tunis Puerto de la Cruz Kassel Frankfurt (Oder) Potsdam Regensburg Tübingen Darmstadt Wolfsburg Vaduz Coburg Neubrandenburg Weimar Ulaanbaatar Yuzawa Braunschweig Garachico Matsudo Hanoi Tartessos Bolhrad Rosenheim Bremerhaven Eisenach Kita-Akita Seoul Třebíč Augsburg Waren (Müritz) Kinshasa Freiburg im Breisgau Brandenburg an der Havel Praia Gera Salzgitter Erlangen Offenbach am Main Zaporizhzhya Pforzheim Bamberg Oldenburg Cottbus Duisburg Caracas Baghdad Dresden Yerevan Kabul Straubing Kempten Bucharest Sarajevo Antananarivo Mannheim Bottrop Mainz Wiesbaden Ōdate Mbabane Daisen Ludwigshafen Kyiv Würzburg Brasília
78
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type city
type waterway
action find_tuple_counts
relation located next to body of water
type city
type body of water
action count
action filter_multi_types
action find
entity Oxford
relation located next to body of water
type waterway
type body of water
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?g WHERE { { ?g property:located_next_to_body_of_water ?q . ?g rdf:type ontology:city . ?q rdf:type ontology:waterway } UNION { ?g property:located_next_to_body_of_water ?q . ?g rdf:type ontology:city . ?q rdf:type ontology:body_of_water } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?y ) WHERE { resource:Oxford property:located_next_to_body_of_water ?d . { { ?d rdf:type ontology:waterway } UNION { ?d rdf:type ontology:body_of_water } } } } . FILTER ( ?s = ?y ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q34217
P17
Q15617994
USER
Which administrative territory is Oxford present in ?
(Q34217,P17,c(Q15617994))
action filter_type
action find
entity Q34217
relation P17
type Q15617994
['Q34217', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q34217 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Oxford
action filter_type
action find
entity Oxford
relation country
type designation for an administrative territorial entity
['Oxford', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Oxford property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q34217,P17,c(Q15617994))
action filter_type
action find
entity Q34217
relation P17
type Q15617994
Oxford is the [ANSWER]
['Q34217', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q34217 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
United Kingdom
Oxford is the United Kingdom
United Kingdom
action filter_type
action find
entity Oxford
relation country
type designation for an administrative territorial entity
['Oxford', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Oxford property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q145 Q18109843 Q19771
P463
Q484652
USER
Is that administrative territory a part of Asian Infrastructure Investment Bank and G20 ?
(Q145,P463,Q18109843) (Q145,P463,Q19771)
action is_in
entity Q145
action intersection
action find_reverse
entity Q18109843
relation P463
action find_reverse
entity Q19771
relation P463
['Q145', 'P463', 'Q18109843'] ['Q145', 'P463', 'Q19771']
ASK WHERE { resource:Q145 property:P463 resource:Q18109843 . resource:Q145 property:P463 resource:Q19771 }
United Kingdom Asian Infrastructure Investment Bank G20
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Asian Infrastructure Investment Bank
relation member of
action find_reverse
entity G20
relation member of
['United Kingdom', 'member of', 'Asian Infrastructure Investment Bank'] ['United Kingdom', 'member of', 'G20']
ASK WHERE { resource:United_Kingdom property:member_of resource:Asian_Infrastructure_Investment_Bank . resource:United_Kingdom property:member_of resource:G20 }
[]
international organization
SYSTEM
NO and YES respectively
(Q145,P463,Q18109843) (Q145,P463,Q19771)
action is_in
entity Q145
action intersection
action find_reverse
entity Q18109843
relation P463
action find_reverse
entity Q19771
relation P463
[ANSWER]
['Q145', 'P463', 'Q18109843'] ['Q145', 'P463', 'Q19771']
ASK WHERE { resource:Q145 property:P463 resource:Q18109843 . resource:Q145 property:P463 resource:Q19771 }
NO and YES respectively
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Asian Infrastructure Investment Bank
relation member of
action find_reverse
entity G20
relation member of
['United Kingdom', 'member of', 'Asian Infrastructure Investment Bank'] ['United Kingdom', 'member of', 'G20']
ASK WHERE { resource:United_Kingdom property:member_of resource:Asian_Infrastructure_Investment_Bank . resource:United_Kingdom property:member_of resource:G20 }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q609646 Q145
P17
Q15617994
USER
Is St John's College located in United Kingdom ?
(Q609646,P17,Q145)
action is_in
entity Q145
action find
entity Q609646
relation P17
['Q609646', 'P17', 'Q145']
ASK WHERE { resource:Q609646 property:P17 resource:Q145 }
St John's College United Kingdom
action is_in
entity United Kingdom
action find
entity St John's College
relation country
["St John's College", 'country', 'United Kingdom']
ASK WHERE { resource:St_John's_College property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q609646,P17,Q145)
action is_in
entity Q145
action find
entity Q609646
relation P17
[ANSWER]
['Q609646', 'P17', 'Q145']
ASK WHERE { resource:Q609646 property:P17 resource:Q145 }
Yes
action is_in
entity United Kingdom
action find
entity St John's College
relation country
["St John's College", 'country', 'United Kingdom']
ASK WHERE { resource:St_John's_College property:country resource:United_Kingdom }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q40
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with less number of administrative territories than Austria ?
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q40
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?g ) WHERE { ?x rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 . ?x property:P530 ?q } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { resource:Q40 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?g < ?h ) }
Austria
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?g ) WHERE { ?x rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?q } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { resource:Austria property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g < ?h ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
9
Q1000 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q40
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?g ) WHERE { ?x rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 . ?x property:P530 ?q } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { resource:Q40 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?g < ?h ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
9
action count
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?g ) WHERE { ?x rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?q } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { resource:Austria property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g < ?h ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P194
Q1752346
USER
Which assembly is the legislative body for United Kingdom ?
(Q145,P194,c(Q1752346))
action filter_type
action find
entity Q145
relation P194
type Q1752346
['Q145', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?z WHERE { resource:Q145 property:P194 ?z . ?z rdf:type ontology:Q1752346 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation legislative body
type assembly
['United Kingdom', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?z WHERE { resource:United_Kingdom property:legislative_body ?z . ?z rdf:type ontology:assembly }
[]
assembly
Q11010
SYSTEM
Parliament of the United Kingdom
Q11010
(Q145,P194,c(Q1752346))
action filter_type
action find
entity Q145
relation P194
type Q1752346
The [ANSWER] is the legislative body for United Kingdom
['Q145', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?z WHERE { resource:Q145 property:P194 ?z . ?z rdf:type ontology:Q1752346 }
Parliament of the United Kingdom
The Parliament of the United Kingdom is the legislative body for United Kingdom
Parliament of the United Kingdom
action filter_type
action find
entity United Kingdom
relation legislative body
type assembly
['United Kingdom', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?z WHERE { resource:United_Kingdom property:legislative_body ?z . ?z rdf:type ontology:assembly }
[]