Simple Question (Direct)
Simple Question
Q5528257
P19
Q56061
USER
Which administrative territory was Gavin Reilly born in ?
(Q5528257,P19,c(Q56061))
action filter_type
action find
entity Q5528257
relation P19
type Q56061
['Q5528257', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q5528257 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Gavin Reilly
action filter_type
action find
entity Gavin Reilly
relation place of birth
type administrative territorial entity
['Gavin Reilly', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Gavin_Reilly property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q652035
SYSTEM
Dumfries
Q652035
(Q5528257,P19,c(Q56061))
action filter_type
action find
entity Q5528257
relation P19
type Q56061
Gavin Reilly was born in [ANSWER]
['Q5528257', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q5528257 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Dumfries
Gavin Reilly was born in Dumfries
Dumfries
action filter_type
action find
entity Gavin Reilly
relation place of birth
type administrative territorial entity
['Gavin Reilly', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Gavin_Reilly property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5528257
P27
Q15617994
USER
Which administrative territory is Gavin Reilly a civilian of ?
(Q5528257,P27,c(Q15617994))
action filter_type
action find
entity Q5528257
relation P27
type Q15617994
['Q5528257', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q5528257 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
Gavin Reilly
action filter_type
action find
entity Gavin Reilly
relation country of citizenship
type designation for an administrative territorial entity
['Gavin Reilly', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Gavin_Reilly property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q5528257,P27,c(Q15617994))
action filter_type
action find
entity Q5528257
relation P27
type Q15617994
[ANSWER] is Gavin Reilly a civilian of
['Q5528257', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q5528257 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is Gavin Reilly a civilian of
United Kingdom
action filter_type
action find
entity Gavin Reilly
relation country of citizenship
type designation for an administrative territorial entity
['Gavin Reilly', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Gavin_Reilly property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q145
P194
Q1752346
USER
Which assembly is the legislative body for that administrative territory ?
(Q145,P194,c(Q1752346))
action filter_type
action find
entity Q145
relation P194
type Q1752346
['Q145', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q1752346 . resource:Q145 property:P194 ?r }
United Kingdom
action filter_type
action find
entity United Kingdom
relation legislative body
type assembly
['United Kingdom', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:assembly . resource:United_Kingdom property:legislative_body ?r }
[]
assembly
Q11010
SYSTEM
Parliament of the United Kingdom
Q11010
(Q145,P194,c(Q1752346))
action filter_type
action find
entity Q145
relation P194
type Q1752346
[ANSWER] is the legislative body for that administrative territory
['Q145', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q1752346 . resource:Q145 property:P194 ?r }
Parliament of the United Kingdom
Parliament of the United Kingdom is the legislative body for that administrative territory
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 ?r WHERE { ?r rdf:type ontology:assembly . resource:United_Kingdom property:legislative_body ?r }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2332097 Q11010
P17
Q15617994
USER
Which administrative territories are Parliament of the United Kingdom or CF Sporting Mahonés a part of ?
OR((Q11010,P17,c(Q15617994)), (Q2332097,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q11010
relation P17
action find
entity Q2332097
relation P17
type Q15617994
{'OR': [['Q11010', 'P17', {'concept': 'Q15617994'}], ['Q2332097', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { { resource:Q11010 property:P17 ?t } UNION { resource:Q2332097 property:P17 ?t } } }
CF Sporting Mahonés Parliament of the United Kingdom
action filter_type
action union
action find
entity Parliament of the United Kingdom
relation country
action find
entity CF Sporting Mahonés
relation country
type designation for an administrative territorial entity
{'OR': [['Parliament of the United Kingdom', 'country', {'concept': 'designation for an administrative territorial entity'}], ['CF Sporting Mahonés', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Parliament_of_the_United_Kingdom property:country ?t } UNION { resource:CF_Sporting_Mahonés property:country ?t } } }
[]
designation for an administrative territorial entity
Q29 Q145
SYSTEM
Spain, United Kingdom
Q29 Q145
OR((Q11010,P17,c(Q15617994)), (Q2332097,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q11010
relation P17
action find
entity Q2332097
relation P17
type Q15617994
[ANSWERS] are Parliament of the United Kingdom or CF Sporting Mahonés a part of
{'OR': [['Q11010', 'P17', {'concept': 'Q15617994'}], ['Q2332097', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { { resource:Q11010 property:P17 ?t } UNION { resource:Q2332097 property:P17 ?t } } }
Spain United Kingdom
Spain and United Kingdom are Parliament of the United Kingdom or CF Sporting Mahonés a part of
Spain United Kingdom
action filter_type
action union
action find
entity Parliament of the United Kingdom
relation country
action find
entity CF Sporting Mahonés
relation country
type designation for an administrative territorial entity
{'OR': [['Parliament of the United Kingdom', 'country', {'concept': 'designation for an administrative territorial entity'}], ['CF Sporting Mahonés', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Parliament_of_the_United_Kingdom property:country ?t } UNION { resource:CF_Sporting_Mahonés property:country ?t } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q16
P530
Q15617994 Q1048835
USER
How many political territories have ambassadorial relations with approximately the same number of administrative territories as Canada ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v rdf:type ontology:Q1048835 . resource:Q16 property:P530 ?v } } . FILTER ( ?m = ?r ) . { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?m ) WHERE { ?t property:P530 ?d . ?t rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?t } }
Canada
action count
action approx
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 Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v rdf:type ontology:political_territorial_entity . resource:Canada property:diplomatic_relation ?v } } . FILTER ( ?m = ?r ) . { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?m ) WHERE { ?t property:diplomatic_relation ?d . ?t rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v rdf:type ontology:Q1048835 . resource:Q16 property:P530 ?v } } . FILTER ( ?m = ?r ) . { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?m ) WHERE { ?t property:P530 ?d . ?t rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15617994 } GROUP BY ?t } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
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 Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v rdf:type ontology:political_territorial_entity . resource:Canada property:diplomatic_relation ?v } } . FILTER ( ?m = ?r ) . { SELECT DISTINCT ?t ( COUNT ( ?d ) AS ?m ) WHERE { ?t property:diplomatic_relation ?d . ?t rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q30 Q21
P38
Q8142
USER
How many currencies are the currencies of United States of America or England ?
(Q30,P38,c(Q8142)) (Q21,P38,c(Q8142))
action count
action union
action filter_type
action find
entity Q30
relation P38
type Q8142
action filter_type
action find
entity Q21
relation P38
type Q8142
['Q30', 'P38', {'concept': 'Q8142'}] ['Q21', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { VALUES ( ?l ) { ( resource:Q30 ) ( resource:Q21 ) } . ?l property:P38 ?c }
United States of America England
action count
action union
action filter_type
action find
entity United States of America
relation currency
type currency
action filter_type
action find
entity England
relation currency
type currency
['United States of America', 'currency', {'concept': 'currency'}] ['England', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { VALUES ( ?l ) { ( resource:United_States_of_America ) ( resource:England ) } . ?l property:currency ?c }
[]
currency
SYSTEM
2
Q25224 Q4917
(Q30,P38,c(Q8142)) (Q21,P38,c(Q8142))
action count
action union
action filter_type
action find
entity Q30
relation P38
type Q8142
action filter_type
action find
entity Q21
relation P38
type Q8142
[ANSWER]
['Q30', 'P38', {'concept': 'Q8142'}] ['Q21', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { VALUES ( ?l ) { ( resource:Q30 ) ( resource:Q21 ) } . ?l property:P38 ?c }
pound sterling United States dollar
2
action count
action union
action filter_type
action find
entity United States of America
relation currency
type currency
action filter_type
action find
entity England
relation currency
type currency
['United States of America', 'currency', {'concept': 'currency'}] ['England', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { VALUES ( ?l ) { ( resource:United_States_of_America ) ( resource:England ) } . ?l property:currency ?c }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with around 102 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 102
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?a ) WHERE { ?o rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 . ?r property:P530 ?o } GROUP BY ?r } . FILTER ( ?a = 102 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 102
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?a ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity . ?r property:diplomatic_relation ?o } GROUP BY ?r } . FILTER ( ?a = 102 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 102
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?a ) WHERE { ?o rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 . ?r property:P530 ?o } GROUP BY ?r } . FILTER ( ?a = 102 ) }
Germany Australia
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 102
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?a ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity . ?r property:diplomatic_relation ?o } GROUP BY ?r } . FILTER ( ?a = 102 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories are known to have diplomatic connections with atmost 93 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 93
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?b ) WHERE { ?q property:P530 ?u . ?q rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?b <= 93 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 93
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?b ) WHERE { ?q property:diplomatic_relation ?u . ?q rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?b <= 93 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 93
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?b ) WHERE { ?q property:P530 ?u . ?q rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q15617994 } GROUP BY ?q } . FILTER ( ?b <= 93 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 93
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?u ) AS ?b ) WHERE { ?q property:diplomatic_relation ?u . ?q rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . FILTER ( ?b <= 93 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P264
Q7725634
USER
Which literary works have United Kingdom as their recording sponsor ?
(c(Q7725634),P264,Q145)
action filter_type
action find_reverse
entity Q145
relation P264
type Q7725634
[{'concept': 'Q7725634'}, 'P264', 'Q145']
SELECT DISTINCT ?l WHERE { ?l property:P264 resource:Q145 . ?l rdf:type ontology:Q7725634 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation record label
type literary work
[{'concept': 'literary work'}, 'record label', 'United Kingdom']
SELECT DISTINCT ?l WHERE { ?l property:record_label resource:United_Kingdom . ?l rdf:type ontology:literary_work }
[]
literary work
Q7995071 Q8056664
SYSTEM
White Mountain, You're the One
Q7995071 Q8056664
(c(Q7725634),P264,Q145)
action filter_type
action find_reverse
entity Q145
relation P264
type Q7725634
[ANSWERS] have United Kingdom as their recording sponsor
[{'concept': 'Q7725634'}, 'P264', 'Q145']
SELECT DISTINCT ?l WHERE { ?l property:P264 resource:Q145 . ?l rdf:type ontology:Q7725634 }
White Mountain You're the One
White Mountain and You're the One have United Kingdom as their recording sponsor
White Mountain You're the One
action filter_type
action find_reverse
entity United Kingdom
relation record label
type literary work
[{'concept': 'literary work'}, 'record label', 'United Kingdom']
SELECT DISTINCT ?l WHERE { ?l property:record_label resource:United_Kingdom . ?l rdf:type ontology:literary_work }
[]