Simple Question (Direct)
Simple Question
Q5525858
P641
Q349
USER
Which sport was Gary Rowell a part of ?
(Q5525858,P641,c(Q349))
action filter_type
action find
entity Q5525858
relation P641
type Q349
['Q5525858', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q5525858 property:P641 ?h . ?h rdf:type ontology:Q349 }
Gary Rowell
action filter_type
action find
entity Gary Rowell
relation sport
type sport
['Gary Rowell', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Gary_Rowell property:sport ?h . ?h rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q5525858,P641,c(Q349))
action filter_type
action find
entity Q5525858
relation P641
type Q349
Which sport was Gary Rowell a part of
['Q5525858', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q5525858 property:P641 ?h . ?h rdf:type ontology:Q349 }
association football
Which sport was Gary Rowell a part of
association football
action filter_type
action find
entity Gary Rowell
relation sport
type sport
['Gary Rowell', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Gary_Rowell property:sport ?h . ?h rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P425
Q12737077
USER
Which occupations do that sport belong to ?
(c(Q12737077),P425,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q2736']
SELECT DISTINCT ?l WHERE { ?l property:P425 resource:Q2736 . ?l rdf:type ontology:Q12737077 }
association football
action filter_type
action find_reverse
entity association football
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'association football']
SELECT DISTINCT ?l WHERE { ?l property:field_of_this_occupation resource:association_football . ?l rdf:type ontology:occupation }
[]
occupation
Q18052877 Q628099 Q937857
SYSTEM
assistant coach, association football manager, association football player
Q18052877 Q628099 Q937857
(c(Q12737077),P425,Q2736)
action filter_type
action find_reverse
entity Q2736
relation P425
type Q12737077
That sport belong to [ANSWERS]
[{'concept': 'Q12737077'}, 'P425', 'Q2736']
SELECT DISTINCT ?l WHERE { ?l property:P425 resource:Q2736 . ?l rdf:type ontology:Q12737077 }
assistant coach association football manager association football player
That sport belong to assistant coach, association football manager and association football player
assistant coach association football manager association football player
action filter_type
action find_reverse
entity association football
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'association football']
SELECT DISTINCT ?l WHERE { ?l property:field_of_this_occupation resource:association_football . ?l rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7959219 Q5525858
P27 P17
Q15617994
USER
Which administrative territories are the countries of citizenship of Gary Rowell or are Wadi Faran a part of ?
OR((Q5525858,P27,c(Q15617994)), (Q7959219,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5525858
relation P27
action find
entity Q7959219
relation P17
type Q15617994
{'OR': [['Q5525858', 'P27', {'concept': 'Q15617994'}], ['Q7959219', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . { { resource:Q5525858 property:P27 ?b } UNION { resource:Q7959219 property:P17 ?b } } }
Wadi Faran Gary Rowell
action filter_type
action union
action find
entity Gary Rowell
relation country of citizenship
action find
entity Wadi Faran
relation country
type designation for an administrative territorial entity
{'OR': [['Gary Rowell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Wadi Faran', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Gary_Rowell property:country_of_citizenship ?b } UNION { resource:Wadi_Faran property:country ?b } } }
[]
designation for an administrative territorial entity
Q851 Q145
SYSTEM
Saudi Arabia, United Kingdom
Q851 Q145
OR((Q5525858,P27,c(Q15617994)), (Q7959219,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5525858
relation P27
action find
entity Q7959219
relation P17
type Q15617994
[ANSWERS] are the countries of citizenship of Gary Rowell or are Wadi Faran a part of
{'OR': [['Q5525858', 'P27', {'concept': 'Q15617994'}], ['Q7959219', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . { { resource:Q5525858 property:P27 ?b } UNION { resource:Q7959219 property:P17 ?b } } }
Saudi Arabia United Kingdom
Saudi Arabia and United Kingdom are the countries of citizenship of Gary Rowell or are Wadi Faran a part of
Saudi Arabia United Kingdom
action filter_type
action union
action find
entity Gary Rowell
relation country of citizenship
action find
entity Wadi Faran
relation country
type designation for an administrative territorial entity
{'OR': [['Gary Rowell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Wadi Faran', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Gary_Rowell property:country_of_citizenship ?b } UNION { resource:Wadi_Faran property:country ?b } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q769
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with approximately the same number of administrative territories as Grenada ?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?l ) WHERE { ?i property:P530 ?b . ?i rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { resource:Q769 property:P530 ?w . ?w rdf:type ontology:Q1048835 } } . FILTER ( ?l = ?d ) }
Grenada
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 Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?l ) WHERE { ?i property:diplomatic_relation ?b . ?i rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { resource:Grenada property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity } } . FILTER ( ?l = ?d ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[ANSWERS] hold diplomatic relationship with approximately the same number of administrative territories as Grenada
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?l ) WHERE { ?i property:P530 ?b . ?i rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { resource:Q769 property:P530 ?w . ?w rdf:type ontology:Q1048835 } } . FILTER ( ?l = ?d ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria hold diplomatic relationship with approximately the same number of administrative territories as Grenada
Denmark Canada Austria
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 Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?l ) WHERE { ?i property:diplomatic_relation ?b . ?i rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { resource:Grenada property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity } } . FILTER ( ?l = ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q35
P530
Q1048835 Q15617994
USER
And also tell me about Denmark?
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?v ) WHERE { ?p property:P530 ?t . ?p rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { resource:Q35 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } . FILTER ( ?v = ?l ) }
Denmark
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 Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?v ) WHERE { ?p property:diplomatic_relation ?t . ?p rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { resource:Denmark property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity } } . FILTER ( ?v = ?l ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?v ) WHERE { ?p property:P530 ?t . ?p rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { resource:Q35 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } . FILTER ( ?v = ?l ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark Canada Austria
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 Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?t ) AS ?v ) WHERE { ?p property:diplomatic_relation ?t . ?p rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { resource:Denmark property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity } } . FILTER ( ?v = ?l ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q664
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic relations with greater number of political territories than New Zealand ?
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?h ) WHERE { ?m rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 . ?m property:P530 ?e } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { resource:Q664 property:P530 ?g . ?g rdf:type ontology:Q1048835 } } . FILTER ( ?h > ?w ) }
New Zealand
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?h ) WHERE { ?m rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity . ?m property:diplomatic_relation ?e } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { resource:New_Zealand property:diplomatic_relation ?g . ?g rdf:type ontology:political_territorial_entity } } . FILTER ( ?h > ?w ) }
[]
political territorial entity political territorial entity
SYSTEM
3
Q183 Q408 Q16
(c(Q1048835),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q664
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?h ) WHERE { ?m rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q1048835 . ?m property:P530 ?e } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { resource:Q664 property:P530 ?g . ?g rdf:type ontology:Q1048835 } } . FILTER ( ?h > ?w ) }
Germany Australia Canada
3
action count
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity New Zealand
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?r ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?h ) WHERE { ?m rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:political_territorial_entity . ?m property:diplomatic_relation ?e } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) WHERE { resource:New_Zealand property:diplomatic_relation ?g . ?g rdf:type ontology:political_territorial_entity } } . FILTER ( ?h > ?w ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P1408
Q4830453
USER
Which business enterprises have procured license for broadcasting to United Kingdom ?
(c(Q4830453),P1408,Q145)
action filter_type
action find_reverse
entity Q145
relation P1408
type Q4830453
[{'concept': 'Q4830453'}, 'P1408', 'Q145']
SELECT DISTINCT ?o WHERE { ?o property:P1408 resource:Q145 . ?o rdf:type ontology:Q4830453 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'United Kingdom']
SELECT DISTINCT ?o WHERE { ?o property:licensed_to_broadcast_to resource:United_Kingdom . ?o rdf:type ontology:business_enterprise }
[]
business enterprise
Q191472 Q6459992 Q7280832
SYSTEM
BBC One, LSRfm.com, Radio Hartlepool
Q191472 Q6459992 Q7280832
(c(Q4830453),P1408,Q145)
action filter_type
action find_reverse
entity Q145
relation P1408
type Q4830453
[ANSWERS] have procured license for broadcasting to United Kingdom
[{'concept': 'Q4830453'}, 'P1408', 'Q145']
SELECT DISTINCT ?o WHERE { ?o property:P1408 resource:Q145 . ?o rdf:type ontology:Q4830453 }
BBC One LSRfm.com Radio Hartlepool
BBC One, LSRfm.com and Radio Hartlepool have procured license for broadcasting to United Kingdom
BBC One LSRfm.com Radio Hartlepool
action filter_type
action find_reverse
entity United Kingdom
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'United Kingdom']
SELECT DISTINCT ?o WHERE { ?o property:licensed_to_broadcast_to resource:United_Kingdom . ?o rdf:type ontology:business_enterprise }
[]
Clarification
Simple Question|Single Entity|Indirect
Q191472
P793
Q49848
USER
Which significant event is that business enterprise associated with ?
(Q191472,P793,c(Q49848))
action filter_type
action find
entity Q191472
relation P793
type Q49848
['Q191472', 'P793', {'concept': 'Q49848'}]
SELECT DISTINCT ?g WHERE { resource:Q191472 property:P793 ?g . ?g rdf:type ontology:Q49848 }
BBC One
action filter_type
action find
entity BBC One
relation significant event
type document
['BBC One', 'significant event', {'concept': 'document'}]
SELECT DISTINCT ?g WHERE { resource:BBC_One property:significant_event ?g . ?g rdf:type ontology:document }
[]
document
Clarification for simple ques.
Q191472
SYSTEM
Did you mean BBC One ?
Q191472 Q6459992 Q7280832
(Q191472,P793,c(Q49848)) (Q6459992,P793,c(Q49848)) (Q7280832,P793,c(Q49848))
[ANSWER]
['Q191472', 'P793', {'concept': 'Q49848'}] ['Q6459992', 'P793', {'concept': 'Q49848'}] ['Q7280832', 'P793', {'concept': 'Q49848'}]
SELECT DISTINCT ?g WHERE { resource:Q191472 property:P793 ?g . ?g rdf:type ontology:Q49848 }
BBC One LSRfm.com Radio Hartlepool
Did you mean BBC One ?
BBC One
['BBC One', 'significant event', {'concept': 'document'}] ['LSRfm.com', 'significant event', {'concept': 'document'}] ['Radio Hartlepool', 'significant event', {'concept': 'document'}]
SELECT DISTINCT ?g WHERE { resource:BBC_One property:significant_event ?g . ?g rdf:type ontology:document }
[]
Simple Question (Coreferenced)
USER
Yes
(Q191472,P793,c(Q49848))
['Q191472', 'P793', {'concept': 'Q49848'}]
['BBC One', 'significant event', {'concept': 'document'}]
[]
Q133454
SYSTEM
high-definition television
Q133454
(Q191472,P793,c(Q49848))
action filter_type
action find
entity Q191472
relation P793
type Q49848
That business enterprise is associated with [ANSWER]
['Q191472', 'P793', {'concept': 'Q49848'}]
SELECT DISTINCT ?g WHERE { resource:Q191472 property:P793 ?g . ?g rdf:type ontology:Q49848 }
high-definition television
That business enterprise is associated with high-definition television
high-definition television
action filter_type
action find
entity BBC One
relation significant event
type document
['BBC One', 'significant event', {'concept': 'document'}]
SELECT DISTINCT ?g WHERE { resource:BBC_One property:significant_event ?g . ?g rdf:type ontology:document }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q191472 Q4883538
P108
Q502895
USER
How many people work for BBC One or Bærum hospital ?
(c(Q502895),P108,Q191472) (c(Q502895),P108,Q4883538)
action count
action union
action filter_type
action find_reverse
entity Q191472
relation P108
type Q502895
action filter_type
action find_reverse
entity Q4883538
relation P108
type Q502895
[{'concept': 'Q502895'}, 'P108', 'Q191472'] [{'concept': 'Q502895'}, 'P108', 'Q4883538']
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:P108 ?f . VALUES ( ?f ) { ( resource:Q191472 ) ( resource:Q4883538 ) } }
BBC One Bærum hospital
action count
action union
action filter_type
action find_reverse
entity BBC One
relation employer
type common name
action filter_type
action find_reverse
entity Bærum hospital
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'BBC One'] [{'concept': 'common name'}, 'employer', 'Bærum hospital']
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:employer ?f . VALUES ( ?f ) { ( resource:BBC_One ) ( resource:Bærum_hospital ) } }
[]
common name
SYSTEM
3
Q6498606 Q5739708 Q1518861
(c(Q502895),P108,Q191472) (c(Q502895),P108,Q4883538)
action count
action union
action filter_type
action find_reverse
entity Q191472
relation P108
type Q502895
action filter_type
action find_reverse
entity Q4883538
relation P108
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P108', 'Q191472'] [{'concept': 'Q502895'}, 'P108', 'Q4883538']
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:P108 ?f . VALUES ( ?f ) { ( resource:Q191472 ) ( resource:Q4883538 ) } }
Laura Aikman Herman Fleischer Høst Owen Jones
3
action count
action union
action filter_type
action find_reverse
entity BBC One
relation employer
type common name
action filter_type
action find_reverse
entity Bærum hospital
relation employer
type common name
[{'concept': 'common name'}, 'employer', 'BBC One'] [{'concept': 'common name'}, 'employer', 'Bærum hospital']
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { ?s property:employer ?f . VALUES ( ?f ) { ( resource:BBC_One ) ( resource:Bærum_hospital ) } }
[]
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 ?m WHERE { resource:Q145 property:P194 ?m . ?m 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 ?m WHERE { resource:United_Kingdom property:legislative_body ?m . ?m 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 ?m WHERE { resource:Q145 property:P194 ?m . ?m 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 ?m WHERE { resource:United_Kingdom property:legislative_body ?m . ?m rdf:type ontology:assembly }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q824489
Q1752346
USER
And also tell me about Estado Novo?
(Q824489,P194,c(Q1752346))
action filter_type
action find
entity Q824489
relation P194
type Q1752346
['Q824489', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?d WHERE { resource:Q824489 property:P194 ?d . ?d rdf:type ontology:Q1752346 }
Estado Novo
action filter_type
action find
entity Estado Novo
relation legislative body
type assembly
['Estado Novo', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?d WHERE { resource:Estado_Novo property:legislative_body ?d . ?d rdf:type ontology:assembly }
[]
assembly
Q189445
SYSTEM
bicameral legislature
Q189445
(Q824489,P194,c(Q1752346))
action filter_type
action find
entity Q824489
relation P194
type Q1752346
[ANSWER]
['Q824489', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?d WHERE { resource:Q824489 property:P194 ?d . ?d rdf:type ontology:Q1752346 }
bicameral legislature
bicameral legislature
action filter_type
action find
entity Estado Novo
relation legislative body
type assembly
['Estado Novo', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?d WHERE { resource:Estado_Novo property:legislative_body ?d . ?d rdf:type ontology:assembly }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35
P1001
Q4164871
USER
Which positions have jurisdiction over Denmark ?
(c(Q4164871),P1001,Q35)
action filter_type
action find_reverse
entity Q35
relation P1001
type Q4164871
[{'concept': 'Q4164871'}, 'P1001', 'Q35']
SELECT DISTINCT ?g WHERE { ?g property:P1001 resource:Q35 . ?g rdf:type ontology:Q4164871 }
Denmark
action filter_type
action find_reverse
entity Denmark
relation applies to jurisdiction
type position
[{'concept': 'position'}, 'applies to jurisdiction', 'Denmark']
SELECT DISTINCT ?g WHERE { ?g property:applies_to_jurisdiction resource:Denmark . ?g rdf:type ontology:position }
[]
position
Q21070726 Q25776270 Q25513955
SYSTEM
Deputy Prime Minister, Minister for Climate and Energy, Minister of Social Affairs
Q21070726 Q25776270 Q25513955
(c(Q4164871),P1001,Q35)
action filter_type
action find_reverse
entity Q35
relation P1001
type Q4164871
Denmark [ANSWERS] have jurisdiction over Denmark
[{'concept': 'Q4164871'}, 'P1001', 'Q35']
SELECT DISTINCT ?g WHERE { ?g property:P1001 resource:Q35 . ?g rdf:type ontology:Q4164871 }
Deputy Prime Minister Minister for Climate and Energy Minister of Social Affairs
Denmark Deputy Prime Minister, Minister for Climate and Energy and Minister of Social Affairs have jurisdiction over Denmark
Deputy Prime Minister Minister for Climate and Energy Minister of Social Affairs
action filter_type
action find_reverse
entity Denmark
relation applies to jurisdiction
type position
[{'concept': 'position'}, 'applies to jurisdiction', 'Denmark']
SELECT DISTINCT ?g WHERE { ?g property:applies_to_jurisdiction resource:Denmark . ?g rdf:type ontology:position }
[]