Simple Question (Direct)
Simple Question
Q5538154
P102
Q7210356
USER
Which political organization is George Courtauld a member of ?
(Q5538154,P102,c(Q7210356))
action filter_type
action find
entity Q5538154
relation P102
type Q7210356
['Q5538154', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { resource:Q5538154 property:P102 ?o . ?o rdf:type ontology:Q7210356 }
George Courtauld
action filter_type
action find
entity George Courtauld
relation member of political party
type political organization
['George Courtauld', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { resource:George_Courtauld property:member_of_political_party ?o . ?o rdf:type ontology:political_organization }
[]
political organization
Q622441
SYSTEM
Liberal Party
Q622441
(Q5538154,P102,c(Q7210356))
action filter_type
action find
entity Q5538154
relation P102
type Q7210356
The [ANSWER] is George Courtauld a member of
['Q5538154', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { resource:Q5538154 property:P102 ?o . ?o rdf:type ontology:Q7210356 }
Liberal Party
The Liberal Party is George Courtauld a member of
Liberal Party
action filter_type
action find
entity George Courtauld
relation member of political party
type political organization
['George Courtauld', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { resource:George_Courtauld property:member_of_political_party ?o . ?o rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q622441
P1001
Q12737077
USER
Which occupation has control over the jurisdiction of that political organization ?
(c(Q12737077),P1001,Q622441)
action filter_type
action find_reverse
entity Q622441
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q622441']
SELECT DISTINCT ?f WHERE { ?f property:P1001 resource:Q622441 . ?f rdf:type ontology:Q12737077 }
Liberal Party
action filter_type
action find_reverse
entity Liberal Party
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Liberal Party']
SELECT DISTINCT ?f WHERE { ?f property:applies_to_jurisdiction resource:Liberal_Party . ?f rdf:type ontology:occupation }
[]
occupation
Q7241338
SYSTEM
President of the Liberal Party
Q7241338
(c(Q12737077),P1001,Q622441)
action filter_type
action find_reverse
entity Q622441
relation P1001
type Q12737077
The [ANSWER] has control over the jurisdiction of that political organization
[{'concept': 'Q12737077'}, 'P1001', 'Q622441']
SELECT DISTINCT ?f WHERE { ?f property:P1001 resource:Q622441 . ?f rdf:type ontology:Q12737077 }
President of the Liberal Party
The President of the Liberal Party has control over the jurisdiction of that political organization
President of the Liberal Party
action filter_type
action find_reverse
entity Liberal Party
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Liberal Party']
SELECT DISTINCT ?f WHERE { ?f property:applies_to_jurisdiction resource:Liberal_Party . ?f rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7241338
P39
Q502895
USER
Which person was responsible for occupying the position of that occupation ?
(c(Q502895),P39,Q7241338)
action filter_type
action find_reverse
entity Q7241338
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q7241338']
SELECT DISTINCT ?y WHERE { ?y property:P39 resource:Q7241338 . ?y rdf:type ontology:Q502895 }
President of the Liberal Party
action filter_type
action find_reverse
entity President of the Liberal Party
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'President of the Liberal Party']
SELECT DISTINCT ?y WHERE { ?y property:position_held resource:President_of_the_Liberal_Party . ?y rdf:type ontology:common_name }
[]
common name
Q5294786
SYSTEM
Donald Maclean
Q5294786
(c(Q502895),P39,Q7241338)
action filter_type
action find_reverse
entity Q7241338
relation P39
type Q502895
[ANSWER] was responsible for occupying the position of that occupation
[{'concept': 'Q502895'}, 'P39', 'Q7241338']
SELECT DISTINCT ?y WHERE { ?y property:P39 resource:Q7241338 . ?y rdf:type ontology:Q502895 }
Donald Maclean
Donald Maclean was responsible for occupying the position of that occupation
Donald Maclean
action filter_type
action find_reverse
entity President of the Liberal Party
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'President of the Liberal Party']
SELECT DISTINCT ?y WHERE { ?y property:position_held resource:President_of_the_Liberal_Party . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5294786
P20
Q56061
USER
Which administrative territory is the place of death of that person ?
(Q5294786,P20,c(Q56061))
action filter_type
action find
entity Q5294786
relation P20
type Q56061
['Q5294786', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q5294786 property:P20 ?b . ?b rdf:type ontology:Q56061 }
Donald Maclean
action filter_type
action find
entity Donald Maclean
relation place of death
type administrative territorial entity
['Donald Maclean', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Donald_Maclean property:place_of_death ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q5294786,P20,c(Q56061))
action filter_type
action find
entity Q5294786
relation P20
type Q56061
[ANSWER] is the place of death of that person
['Q5294786', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q5294786 property:P20 ?b . ?b rdf:type ontology:Q56061 }
London
London is the place of death of that person
London
action filter_type
action find
entity Donald Maclean
relation place of death
type administrative territorial entity
['Donald Maclean', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Donald_Maclean property:place_of_death ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P740
Q4830453 Q641066
USER
How many business enterprises and girl groups originated at that administrative territory ?
(c(Q4830453),P740,Q84) (c(Q641066),P740,Q84) (c(Q4830453),P740,Q84) (c(Q641066),P740,Q84)
action count
action union
action filter_type
action find_reverse
entity Q84
relation P740
type Q4830453
action filter_type
action find_reverse
entity Q84
relation P740
type Q641066
[{'concept': 'Q4830453'}, 'P740', 'Q84'] [{'concept': 'Q641066'}, 'P740', 'Q84'] [{'concept': 'Q4830453'}, 'P740', 'Q84'] [{'concept': 'Q641066'}, 'P740', 'Q84']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { ?f property:P740 resource:Q84 . ?f rdf:type ontology:Q4830453 } UNION { ?f rdf:type ontology:Q641066 . ?f property:P740 resource:Q84 } }
action count
action union
action filter_type
action find_reverse
entity London
relation location of formation
type business enterprise
action filter_type
action find_reverse
entity London
relation location of formation
type girl group
[{'concept': 'business enterprise'}, 'location of formation', 'London'] [{'concept': 'girl group'}, 'location of formation', 'London'] [{'concept': 'business enterprise'}, 'location of formation', 'London'] [{'concept': 'girl group'}, 'location of formation', 'London']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { ?f property:location_of_formation resource:London . ?f rdf:type ontology:business_enterprise } UNION { ?f rdf:type ontology:girl_group . ?f property:location_of_formation resource:London } }
[]
business enterprise girl group
SYSTEM
8 business enterprises and 1 girl groups
Q654762 Q7494537 Q503176 Q165386 Q7672333 Q7164989 Q7243034 Q670413 Q4972037
(c(Q4830453),P740,Q84) (c(Q641066),P740,Q84) (c(Q4830453),P740,Q84) (c(Q641066),P740,Q84)
action count
action union
action filter_type
action find_reverse
entity Q84
relation P740
type Q4830453
action filter_type
action find_reverse
entity Q84
relation P740
type Q641066
[ANSWER]
[{'concept': 'Q4830453'}, 'P740', 'Q84'] [{'concept': 'Q641066'}, 'P740', 'Q84'] [{'concept': 'Q4830453'}, 'P740', 'Q84'] [{'concept': 'Q641066'}, 'P740', 'Q84']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { ?f property:P740 resource:Q84 . ?f rdf:type ontology:Q4830453 } UNION { ?f rdf:type ontology:Q641066 . ?f property:P740 resource:Q84 } }
Sotheby's Sheppard Robson Christie's All Saints TV Genius Pentagram Primal Pictures Piriform Broadbean
8 business enterprises and 1 girl groups
action count
action union
action filter_type
action find_reverse
entity London
relation location of formation
type business enterprise
action filter_type
action find_reverse
entity London
relation location of formation
type girl group
[{'concept': 'business enterprise'}, 'location of formation', 'London'] [{'concept': 'girl group'}, 'location of formation', 'London'] [{'concept': 'business enterprise'}, 'location of formation', 'London'] [{'concept': 'girl group'}, 'location of formation', 'London']
SELECT DISTINCT ( COUNT ( ?f ) AS ?n ) WHERE { { ?f property:location_of_formation resource:London . ?f rdf:type ontology:business_enterprise } UNION { ?f rdf:type ontology:girl_group . ?f property:location_of_formation resource:London } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19344499 Q5294786
P276 P937
Q56061
USER
Which administrative territories did Donald Maclean work or are Mesdagweg located ?
OR((Q5294786,P937,c(Q56061)), (Q19344499,P276,c(Q56061)))
action filter_type
action union
action find
entity Q5294786
relation P937
action find
entity Q19344499
relation P276
type Q56061
{'OR': [['Q5294786', 'P937', {'concept': 'Q56061'}], ['Q19344499', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q5294786 property:P937 ?g } UNION { resource:Q19344499 property:P276 ?g } } . ?g rdf:type ontology:Q56061 }
Mesdagweg Donald Maclean
action filter_type
action union
action find
entity Donald Maclean
relation work location
action find
entity Mesdagweg
relation location
type administrative territorial entity
{'OR': [['Donald Maclean', 'work location', {'concept': 'administrative territorial entity'}], ['Mesdagweg', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Donald_Maclean property:work_location ?g } UNION { resource:Mesdagweg property:location ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q146984 Q84
SYSTEM
Groesbeek, London
Q146984 Q84
OR((Q5294786,P937,c(Q56061)), (Q19344499,P276,c(Q56061)))
action filter_type
action union
action find
entity Q5294786
relation P937
action find
entity Q19344499
relation P276
type Q56061
Donald Maclean worked in [ANSWERS]
{'OR': [['Q5294786', 'P937', {'concept': 'Q56061'}], ['Q19344499', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q5294786 property:P937 ?g } UNION { resource:Q19344499 property:P276 ?g } } . ?g rdf:type ontology:Q56061 }
Groesbeek London
Donald Maclean worked in Groesbeek and London
Groesbeek London
action filter_type
action union
action find
entity Donald Maclean
relation work location
action find
entity Mesdagweg
relation location
type administrative territorial entity
{'OR': [['Donald Maclean', 'work location', {'concept': 'administrative territorial entity'}], ['Mesdagweg', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Donald_Maclean property:work_location ?g } UNION { resource:Mesdagweg property:location ?g } } . ?g rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q18602670 Q5294786
P937 P915
Q56061
USER
Which administrative territories are the work locations of Donald Maclean and were Spectre filmed ?
AND((Q5294786,P937,c(Q56061)), (Q18602670,P915,c(Q56061)))
action filter_type
action intersection
action find
entity Q5294786
relation P937
action find
entity Q18602670
relation P915
type Q56061
{'AND': [['Q5294786', 'P937', {'concept': 'Q56061'}], ['Q18602670', 'P915', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { resource:Q5294786 property:P937 ?e . resource:Q18602670 property:P915 ?e . ?e rdf:type ontology:Q56061 }
Spectre Donald Maclean
action filter_type
action intersection
action find
entity Donald Maclean
relation work location
action find
entity Spectre
relation filming location
type administrative territorial entity
{'AND': [['Donald Maclean', 'work location', {'concept': 'administrative territorial entity'}], ['Spectre', 'filming location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { resource:Donald_Maclean property:work_location ?e . resource:Spectre property:filming_location ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
AND((Q5294786,P937,c(Q56061)), (Q18602670,P915,c(Q56061)))
action filter_type
action intersection
action find
entity Q5294786
relation P937
action find
entity Q18602670
relation P915
type Q56061
[ANSWER] is the work locations of Donald Maclean and were Spectre filmed
{'AND': [['Q5294786', 'P937', {'concept': 'Q56061'}], ['Q18602670', 'P915', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { resource:Q5294786 property:P937 ?e . resource:Q18602670 property:P915 ?e . ?e rdf:type ontology:Q56061 }
London
London is the work locations of Donald Maclean and were Spectre filmed
London
action filter_type
action intersection
action find
entity Donald Maclean
relation work location
action find
entity Spectre
relation filming location
type administrative territorial entity
{'AND': [['Donald Maclean', 'work location', {'concept': 'administrative territorial entity'}], ['Spectre', 'filming location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { resource:Donald_Maclean property:work_location ?e . resource:Spectre property:filming_location ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5294786
P1412
Q34770
USER
Which language does Donald Maclean speak in ?
(Q5294786,P1412,c(Q34770))
action filter_type
action find
entity Q5294786
relation P1412
type Q34770
['Q5294786', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q5294786 property:P1412 ?s . ?s rdf:type ontology:Q34770 }
Donald Maclean
action filter_type
action find
entity Donald Maclean
relation languages spoken, written or signed
type language
['Donald Maclean', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:Donald_Maclean property:languages_spoken,_written_or_signed ?s . ?s rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q5294786,P1412,c(Q34770))
action filter_type
action find
entity Q5294786
relation P1412
type Q34770
Donald Maclean speaks the [ANSWER]
['Q5294786', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q5294786 property:P1412 ?s . ?s rdf:type ontology:Q34770 }
English
Donald Maclean speaks the English
English
action filter_type
action find
entity Donald Maclean
relation languages spoken, written or signed
type language
['Donald Maclean', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:Donald_Maclean property:languages_spoken,_written_or_signed ?s . ?s rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5294786
P21
Q290
USER
Which sex does that person possess ?
(Q1860,P21,c(Q290))
action filter_type
action find
entity Q5294786
relation P21
type Q290
['Q1860', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q5294786 property:P21 ?s . ?s rdf:type ontology:Q290 }
Donald Maclean
action filter_type
action find
entity Donald Maclean
relation gender
type sex
['English', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Donald_Maclean property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1860,P21,c(Q290))
action filter_type
action find
entity Q5294786
relation P21
type Q290
That person possesses a [ANSWER]
['Q1860', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q5294786 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity Donald Maclean
relation gender
type sex
['English', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Donald_Maclean property:gender ?s . ?s rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q223557 Q43229 Q56061
USER
How many administrative territories come from exactly 1 physical objects or organizations ?
(c(Q56061),P138,c(Q223557)|c(Q43229))
action count
action equal
action union
action find_tuple_counts
relation P138
type Q56061
type Q223557
action find_tuple_counts
relation P138
type Q56061
type Q43229
value 1
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q223557'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?s ) WHERE { { ?r property:P138 ?a . ?r rdf:type ontology:Q56061 . ?a rdf:type ontology:Q223557 } UNION { ?r property:P138 ?a . ?r rdf:type ontology:Q56061 . ?a rdf:type ontology:Q43229 } } GROUP BY ?r } . FILTER ( ?s = 1 ) }
action count
action equal
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type physical object
action find_tuple_counts
relation named after
type administrative territorial entity
type organization
value 1
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'physical object'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?s ) WHERE { { ?r property:named_after ?a . ?r rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:physical_object } UNION { ?r property:named_after ?a . ?r rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:organization } } GROUP BY ?r } . FILTER ( ?s = 1 ) }
[]
physical object organization administrative territorial entity
SYSTEM
4
Q2058 Q2135060 Q906740 Q2198018
(c(Q56061),P138,c(Q223557)|c(Q43229))
action count
action equal
action union
action find_tuple_counts
relation P138
type Q56061
type Q223557
action find_tuple_counts
relation P138
type Q56061
type Q43229
value 1
[ANSWER]
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q223557'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?s ) WHERE { { ?r property:P138 ?a . ?r rdf:type ontology:Q56061 . ?a rdf:type ontology:Q223557 } UNION { ?r property:P138 ?a . ?r rdf:type ontology:Q56061 . ?a rdf:type ontology:Q43229 } } GROUP BY ?r } . FILTER ( ?s = 1 ) }
Whitehorse Gas Diósgyőr-Vasgyár Batadorp
4
action count
action equal
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type physical object
action find_tuple_counts
relation named after
type administrative territorial entity
type organization
value 1
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'physical object'}, {'concept': 'organization'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?s ) WHERE { { ?r property:named_after ?a . ?r rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:physical_object } UNION { ?r property:named_after ?a . ?r rdf:type ontology:administrative_territorial_entity . ?a rdf:type ontology:organization } } GROUP BY ?r } . FILTER ( ?s = 1 ) }
[]