Simple Question (Direct)
Simple Question
Q21005709
P27
Q1048835
USER
Which political territory is the native country of Shaquille Dyer ?
(Q21005709,P27,c(Q1048835))
action filter_type
action find
entity Q21005709
relation P27
type Q1048835
['Q21005709', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q21005709 property:P27 ?q . ?q rdf:type ontology:Q1048835 }
Shaquille Dyer
action filter_type
action find
entity Shaquille Dyer
relation country of citizenship
type political territorial entity
['Shaquille Dyer', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Shaquille_Dyer property:country_of_citizenship ?q . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q766
SYSTEM
Jamaica
Q766
(Q21005709,P27,c(Q1048835))
action filter_type
action find
entity Q21005709
relation P27
type Q1048835
[ANSWER] is the native country of Shaquille Dyer
['Q21005709', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { resource:Q21005709 property:P27 ?q . ?q rdf:type ontology:Q1048835 }
Jamaica
Jamaica is the native country of Shaquille Dyer
Jamaica
action filter_type
action find
entity Shaquille Dyer
relation country of citizenship
type political territorial entity
['Shaquille Dyer', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Shaquille_Dyer property:country_of_citizenship ?q . ?q rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21005709
P641
Q349
USER
Which sport was Shaquille Dyer a part of ?
(Q21005709,P641,c(Q349))
action filter_type
action find
entity Q21005709
relation P641
type Q349
['Q21005709', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q21005709 property:P641 ?s . ?s rdf:type ontology:Q349 }
Shaquille Dyer
action filter_type
action find
entity Shaquille Dyer
relation sport
type sport
['Shaquille Dyer', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:Shaquille_Dyer property:sport ?s . ?s rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q21005709,P641,c(Q349))
action filter_type
action find
entity Q21005709
relation P641
type Q349
Which sport was Shaquille Dyer a part of
['Q21005709', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?s WHERE { resource:Q21005709 property:P641 ?s . ?s rdf:type ontology:Q349 }
association football
Which sport was Shaquille Dyer a part of
association football
action filter_type
action find
entity Shaquille Dyer
relation sport
type sport
['Shaquille Dyer', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?s WHERE { resource:Shaquille_Dyer property:sport ?s . ?s rdf:type ontology:sport }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q4164871 Q56061 Q1048835
USER
Which political territories have around 2 positions and administrative territories as government ?
(c(Q1048835),P122,c(Q4164871)|c(Q56061))
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q4164871
action find_tuple_counts
relation P122
type Q1048835
type Q56061
value 2
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?z ) WHERE { { ?y property:P122 ?n . ?y rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q4164871 } UNION { ?n rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1048835 . ?y property:P122 ?n } } GROUP BY ?y } . FILTER ( ?z = 2 ) }
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type position
action find_tuple_counts
relation basic form of government
type political territorial entity
type administrative territorial entity
value 2
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?z ) WHERE { { ?y property:basic_form_of_government ?n . ?y rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:position } UNION { ?n rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity . ?y property:basic_form_of_government ?n } } GROUP BY ?y } . FILTER ( ?z = 2 ) }
[]
position administrative territorial entity political territorial entity
Q641138
SYSTEM
Duchy of Cleves
Q641138
(c(Q1048835),P122,c(Q4164871)|c(Q56061))
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q4164871
action find_tuple_counts
relation P122
type Q1048835
type Q56061
value 2
[ANSWER] have around 2 positions and administrative territories as government
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?z ) WHERE { { ?y property:P122 ?n . ?y rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q4164871 } UNION { ?n rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1048835 . ?y property:P122 ?n } } GROUP BY ?y } . FILTER ( ?z = 2 ) }
Duchy of Cleves
Duchy of Cleves have around 2 positions and administrative territories as government
Duchy of Cleves
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type position
action find_tuple_counts
relation basic form of government
type political territorial entity
type administrative territorial entity
value 2
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?z ) WHERE { { ?y property:basic_form_of_government ?n . ?y rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:position } UNION { ?n rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity . ?y property:basic_form_of_government ?n } } GROUP BY ?y } . FILTER ( ?z = 2 ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q641138
P140
Q879146
USER
Which Christian denomination does that political territory relate to ?
(Q641138,P140,c(Q879146))
action filter_type
action find
entity Q641138
relation P140
type Q879146
['Q641138', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?i WHERE { resource:Q641138 property:P140 ?i . ?i rdf:type ontology:Q879146 }
Duchy of Cleves
action filter_type
action find
entity Duchy of Cleves
relation religion
type Christian denomination
['Duchy of Cleves', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?i WHERE { resource:Duchy_of_Cleves property:religion ?i . ?i rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q9592
SYSTEM
Roman Catholic Church
Q9592
(Q641138,P140,c(Q879146))
action filter_type
action find
entity Q641138
relation P140
type Q879146
That political territory relates to [ANSWER]
['Q641138', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?i WHERE { resource:Q641138 property:P140 ?i . ?i rdf:type ontology:Q879146 }
Roman Catholic Church
That political territory relates to Roman Catholic Church
Roman Catholic Church
action filter_type
action find
entity Duchy of Cleves
relation religion
type Christian denomination
['Duchy of Cleves', 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?i WHERE { resource:Duchy_of_Cleves property:religion ?i . ?i rdf:type ontology:Christian_denomination }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11889255
Q879146
USER
And what about St. Andrew's Church?
(Q11889255,P140,c(Q879146))
action filter_type
action find
entity Q11889255
relation P140
type Q879146
['Q11889255', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?x WHERE { resource:Q11889255 property:P140 ?x . ?x rdf:type ontology:Q879146 }
St. Andrew's Church
action filter_type
action find
entity St. Andrew's Church
relation religion
type Christian denomination
["St. Andrew's Church", 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?x WHERE { resource:St._Andrew's_Church property:religion ?x . ?x rdf:type ontology:Christian_denomination }
[]
Christian denomination
Q1379849
SYSTEM
Evangelical Lutheran Church of Finland
Q1379849
(Q11889255,P140,c(Q879146))
action filter_type
action find
entity Q11889255
relation P140
type Q879146
[ANSWER]
['Q11889255', 'P140', {'concept': 'Q879146'}]
SELECT DISTINCT ?x WHERE { resource:Q11889255 property:P140 ?x . ?x rdf:type ontology:Q879146 }
Evangelical Lutheran Church of Finland
Evangelical Lutheran Church of Finland
action filter_type
action find
entity St. Andrew's Church
relation religion
type Christian denomination
["St. Andrew's Church", 'religion', {'concept': 'Christian denomination'}]
SELECT DISTINCT ?x WHERE { resource:St._Andrew's_Church property:religion ?x . ?x rdf:type ontology:Christian_denomination }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P463
Q251777 Q43229
USER
How many customs or organizations were that Christian denomination a member of ?
(Q1379849,P463,c(Q251777)) (Q1379849,P463,c(Q43229)) (Q1379849,P463,c(Q251777)) (Q1379849,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q1379849
relation P463
type Q251777
action filter_type
action find
entity Q1379849
relation P463
type Q43229
['Q1379849', 'P463', {'concept': 'Q251777'}] ['Q1379849', 'P463', {'concept': 'Q43229'}] ['Q1379849', 'P463', {'concept': 'Q251777'}] ['Q1379849', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { resource:Q1379849 property:P463 ?g . ?g rdf:type ontology:Q251777 } UNION { resource:Q1379849 property:P463 ?g . ?g rdf:type ontology:Q43229 } }
action count
action union
action filter_type
action find
entity Evangelical Lutheran Church of Finland
relation member of
type custom
action filter_type
action find
entity Evangelical Lutheran Church of Finland
relation member of
type organization
['Evangelical Lutheran Church of Finland', 'member of', {'concept': 'custom'}] ['Evangelical Lutheran Church of Finland', 'member of', {'concept': 'organization'}] ['Evangelical Lutheran Church of Finland', 'member of', {'concept': 'custom'}] ['Evangelical Lutheran Church of Finland', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { resource:Evangelical_Lutheran_Church_of_Finland property:member_of ?g . ?g rdf:type ontology:custom } UNION { resource:Evangelical_Lutheran_Church_of_Finland property:member_of ?g . ?g rdf:type ontology:organization } }
[]
custom organization
SYSTEM
2
Q368606 Q942284
(Q1379849,P463,c(Q251777)) (Q1379849,P463,c(Q43229)) (Q1379849,P463,c(Q251777)) (Q1379849,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q1379849
relation P463
type Q251777
action filter_type
action find
entity Q1379849
relation P463
type Q43229
[ANSWER]
['Q1379849', 'P463', {'concept': 'Q251777'}] ['Q1379849', 'P463', {'concept': 'Q43229'}] ['Q1379849', 'P463', {'concept': 'Q251777'}] ['Q1379849', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { resource:Q1379849 property:P463 ?g . ?g rdf:type ontology:Q251777 } UNION { resource:Q1379849 property:P463 ?g . ?g rdf:type ontology:Q43229 } }
Porvoo Communion Lutheran World Federation
2
action count
action union
action filter_type
action find
entity Evangelical Lutheran Church of Finland
relation member of
type custom
action filter_type
action find
entity Evangelical Lutheran Church of Finland
relation member of
type organization
['Evangelical Lutheran Church of Finland', 'member of', {'concept': 'custom'}] ['Evangelical Lutheran Church of Finland', 'member of', {'concept': 'organization'}] ['Evangelical Lutheran Church of Finland', 'member of', {'concept': 'custom'}] ['Evangelical Lutheran Church of Finland', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { { resource:Evangelical_Lutheran_Church_of_Finland property:member_of ?g . ?g rdf:type ontology:custom } UNION { resource:Evangelical_Lutheran_Church_of_Finland property:member_of ?g . ?g rdf:type ontology:organization } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P706
Q2221906 Q15324 Q1048835
USER
Which political territories have their location as max number of geographic locations and bodies of water ?
(c(Q1048835),P706,c(Q2221906)|c(Q15324))
action argmax
action union
action find_tuple_counts
relation P706
type Q1048835
type Q2221906
action find_tuple_counts
relation P706
type Q1048835
type Q15324
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q2221906'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?g ) WHERE { { ?s property:P706 ?n . ?n rdf:type ontology:Q2221906 . ?s rdf:type ontology:Q1048835 } UNION { ?s property:P706 ?n . ?s rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15324 } } GROUP BY ?s } . FILTER ( ?g = ?v ) . { SELECT DISTINCT ( MAX ( ?b ) AS ?v ) { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?b ) WHERE { ?m rdf:type ?q . VALUES ( ?q ) { ( ontology:Q2221906 ) ( ontology:Q15324 ) } } GROUP BY ?j } } }
action argmax
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type body of water
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'geographic location'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?g ) WHERE { { ?s property:located_on_terrain_feature ?n . ?n rdf:type ontology:geographic_location . ?s rdf:type ontology:political_territorial_entity } UNION { ?s property:located_on_terrain_feature ?n . ?s rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:body_of_water } } GROUP BY ?s } . FILTER ( ?g = ?v ) . { SELECT DISTINCT ( MAX ( ?b ) AS ?v ) { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?b ) WHERE { ?m rdf:type ?q . VALUES ( ?q ) { ( ontology:geographic_location ) ( ontology:body_of_water ) } } GROUP BY ?j } } }
[]
geographic location body of water political territorial entity
Q766 Q778 Q9676
SYSTEM
Jamaica, The Bahamas, Isle of Man
Q13353 Q6139 Q168856 Q5785 Q25228 Q170213 Q766 Q9676 Q168159 Q18221 Q778 Q5700 Q25305
(c(Q1048835),P706,c(Q2221906)|c(Q15324))
action argmax
action union
action find_tuple_counts
relation P706
type Q1048835
type Q2221906
action find_tuple_counts
relation P706
type Q1048835
type Q15324
[ANSWERS] have their location as max number of geographic locations and bodies of water
[{'concept': 'Q1048835'}, 'P706', [{'concept': 'Q2221906'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?g ) WHERE { { ?s property:P706 ?n . ?n rdf:type ontology:Q2221906 . ?s rdf:type ontology:Q1048835 } UNION { ?s property:P706 ?n . ?s rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15324 } } GROUP BY ?s } . FILTER ( ?g = ?v ) . { SELECT DISTINCT ( MAX ( ?b ) AS ?v ) { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?b ) WHERE { ?m rdf:type ?q . VALUES ( ?q ) { ( ontology:Q2221906 ) ( ontology:Q15324 ) } } GROUP BY ?j } } }
Montserrat Havelland Chernivtsi Oblast Cayman Islands Anguilla Zakarpattia Oblast Jamaica Isle of Man Anglesey Turks and Caicos Islands The Bahamas Lapland British Virgin Islands
Jamaica, The Bahamas and Isle of Man have their location as max number of geographic locations and bodies of water
Jamaica The Bahamas Isle of Man
action argmax
action union
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type geographic location
action find_tuple_counts
relation located on terrain feature
type political territorial entity
type body of water
[{'concept': 'political territorial entity'}, 'located on terrain feature', [{'concept': 'geographic location'}, {'concept': 'body of water'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?g ) WHERE { { ?s property:located_on_terrain_feature ?n . ?n rdf:type ontology:geographic_location . ?s rdf:type ontology:political_territorial_entity } UNION { ?s property:located_on_terrain_feature ?n . ?s rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:body_of_water } } GROUP BY ?s } . FILTER ( ?g = ?v ) . { SELECT DISTINCT ( MAX ( ?b ) AS ?v ) { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?b ) WHERE { ?m rdf:type ?q . VALUES ( ?q ) { ( ontology:geographic_location ) ( ontology:body_of_water ) } } GROUP BY ?j } } }
[]