Simple Question (Direct)
Simple Question
Q820867
P58
Q502895
USER
Who were the screenwriters for Berkeley Square ?
(Q820867,P58,c(Q502895))
action filter_type
action find
entity Q820867
relation P58
type Q502895
['Q820867', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q820867 property:P58 ?q . ?q rdf:type ontology:Q502895 }
Berkeley Square
action filter_type
action find
entity Berkeley Square
relation screenwriter
type common name
['Berkeley Square', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Berkeley_Square property:screenwriter ?q . ?q rdf:type ontology:common_name }
[]
common name
Q434645 Q721191
SYSTEM
Sonya Levien, John L. Balderston
Q434645 Q721191
(Q820867,P58,c(Q502895))
action filter_type
action find
entity Q820867
relation P58
type Q502895
The screenwriters for Berkeley Square were [ANSWERS]
['Q820867', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q820867 property:P58 ?q . ?q rdf:type ontology:Q502895 }
Sonya Levien John L. Balderston
The screenwriters for Berkeley Square were Sonya Levien and John L. Balderston
Sonya Levien John L. Balderston
action filter_type
action find
entity Berkeley Square
relation screenwriter
type common name
['Berkeley Square', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Berkeley_Square property:screenwriter ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q820867
P19
Q502895
USER
Which person has place of birth as Berkeley Square ?
(c(Q502895),P19,Q820867)
action filter_type
action find_reverse
entity Q820867
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q820867']
SELECT DISTINCT ?t WHERE { ?t property:P19 resource:Q820867 . ?t rdf:type ontology:Q502895 }
Berkeley Square
action filter_type
action find_reverse
entity Berkeley Square
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Berkeley Square']
SELECT DISTINCT ?t WHERE { ?t property:place_of_birth resource:Berkeley_Square . ?t rdf:type ontology:common_name }
[]
common name
Q313074
SYSTEM
Charles Rolls
Q313074
(c(Q502895),P19,Q820867)
action filter_type
action find_reverse
entity Q820867
relation P19
type Q502895
[ANSWER] has place of birth as Berkeley Square
[{'concept': 'Q502895'}, 'P19', 'Q820867']
SELECT DISTINCT ?t WHERE { ?t property:P19 resource:Q820867 . ?t rdf:type ontology:Q502895 }
Charles Rolls
Charles Rolls has place of birth as Berkeley Square
Charles Rolls
action filter_type
action find_reverse
entity Berkeley Square
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Berkeley Square']
SELECT DISTINCT ?t WHERE { ?t property:place_of_birth resource:Berkeley_Square . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q313074
P20
Q56061
USER
Where did the expiration of that person occur ?
(Q313074,P20,c(Q56061))
action filter_type
action find
entity Q313074
relation P20
type Q56061
['Q313074', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q313074 property:P20 ?m . ?m rdf:type ontology:Q56061 }
Charles Rolls
action filter_type
action find
entity Charles Rolls
relation place of death
type administrative territorial entity
['Charles Rolls', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Charles_Rolls property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q170478
SYSTEM
Bournemouth
Q170478
(Q313074,P20,c(Q56061))
action filter_type
action find
entity Q313074
relation P20
type Q56061
The expiration of that person occurred in [ANSWER]
['Q313074', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q313074 property:P20 ?m . ?m rdf:type ontology:Q56061 }
Bournemouth
The expiration of that person occurred in Bournemouth
Bournemouth
action filter_type
action find
entity Charles Rolls
relation place of death
type administrative territorial entity
['Charles Rolls', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Charles_Rolls property:place_of_death ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P159
Q43229 Q28640
USER
How many organizations and professions have their HQ location at that administrative territory ?
(c(Q43229),P159,Q170478) (c(Q28640),P159,Q170478) (c(Q43229),P159,Q170478) (c(Q28640),P159,Q170478)
action count
action union
action filter_type
action find_reverse
entity Q170478
relation P159
type Q43229
action filter_type
action find_reverse
entity Q170478
relation P159
type Q28640
[{'concept': 'Q43229'}, 'P159', 'Q170478'] [{'concept': 'Q28640'}, 'P159', 'Q170478'] [{'concept': 'Q43229'}, 'P159', 'Q170478'] [{'concept': 'Q28640'}, 'P159', 'Q170478']
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { ?d property:P159 resource:Q170478 . ?d rdf:type ontology:Q43229 } UNION { ?d property:P159 resource:Q170478 . ?d rdf:type ontology:Q28640 } }
action count
action union
action filter_type
action find_reverse
entity Bournemouth
relation headquarters location
type organization
action filter_type
action find_reverse
entity Bournemouth
relation headquarters location
type profession
[{'concept': 'organization'}, 'headquarters location', 'Bournemouth'] [{'concept': 'profession'}, 'headquarters location', 'Bournemouth'] [{'concept': 'organization'}, 'headquarters location', 'Bournemouth'] [{'concept': 'profession'}, 'headquarters location', 'Bournemouth']
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { ?d property:headquarters_location resource:Bournemouth . ?d rdf:type ontology:organization } UNION { ?d property:headquarters_location resource:Bournemouth . ?d rdf:type ontology:profession } }
[]
organization profession
SYSTEM
9 organizations and 1 professions
Q1853584 Q7449161 Q7232114 Q21043360 Q4876141 Q7462670 Q127120 Q4681127 Q16997473 Q5244412
(c(Q43229),P159,Q170478) (c(Q28640),P159,Q170478) (c(Q43229),P159,Q170478) (c(Q28640),P159,Q170478)
action count
action union
action filter_type
action find_reverse
entity Q170478
relation P159
type Q43229
action filter_type
action find_reverse
entity Q170478
relation P159
type Q28640
[ANSWER]
[{'concept': 'Q43229'}, 'P159', 'Q170478'] [{'concept': 'Q28640'}, 'P159', 'Q170478'] [{'concept': 'Q43229'}, 'P159', 'Q170478'] [{'concept': 'Q28640'}, 'P159', 'Q170478']
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { ?d property:P159 resource:Q170478 . ?d rdf:type ontology:Q43229 } UNION { ?d property:P159 resource:Q170478 . ?d rdf:type ontology:Q28640 } }
Imagine Publishing Sembcorp Bournemouth Water Portman Building Society Virtual Programming Beales Shakeaway Fitness First Addictive Games McCarthy & Stone De Havilland Aviation
9 organizations and 1 professions
action count
action union
action filter_type
action find_reverse
entity Bournemouth
relation headquarters location
type organization
action filter_type
action find_reverse
entity Bournemouth
relation headquarters location
type profession
[{'concept': 'organization'}, 'headquarters location', 'Bournemouth'] [{'concept': 'profession'}, 'headquarters location', 'Bournemouth'] [{'concept': 'organization'}, 'headquarters location', 'Bournemouth'] [{'concept': 'profession'}, 'headquarters location', 'Bournemouth']
SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { { ?d property:headquarters_location resource:Bournemouth . ?d rdf:type ontology:organization } UNION { ?d property:headquarters_location resource:Bournemouth . ?d rdf:type ontology:profession } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q170478
P937
Q502895
USER
Which people have Bournemouth as their work location ?
(c(Q502895),P937,Q170478)
action filter_type
action find_reverse
entity Q170478
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q170478']
SELECT DISTINCT ?f WHERE { ?f property:P937 resource:Q170478 . ?f rdf:type ontology:Q502895 }
Bournemouth
action filter_type
action find_reverse
entity Bournemouth
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Bournemouth']
SELECT DISTINCT ?f WHERE { ?f property:work_location resource:Bournemouth . ?f rdf:type ontology:common_name }
[]
common name
Q184746 Q526647
SYSTEM
Jane Goodall, Andy McDermott
Q184746 Q526647
(c(Q502895),P937,Q170478)
action filter_type
action find_reverse
entity Q170478
relation P937
type Q502895
[ANSWERS] have Bournemouth as their work location
[{'concept': 'Q502895'}, 'P937', 'Q170478']
SELECT DISTINCT ?f WHERE { ?f property:P937 resource:Q170478 . ?f rdf:type ontology:Q502895 }
Jane Goodall Andy McDermott
Jane Goodall and Andy McDermott have Bournemouth as their work location
Jane Goodall Andy McDermott
action filter_type
action find_reverse
entity Bournemouth
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Bournemouth']
SELECT DISTINCT ?f WHERE { ?f property:work_location resource:Bournemouth . ?f rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q526647
P1412
Q34770
USER
Which language is that person capable of writing ?
(Q526647,P1412,c(Q34770))
action filter_type
action find
entity Q526647
relation P1412
type Q34770
['Q526647', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q34770 . resource:Q526647 property:P1412 ?a }
Andy McDermott
action filter_type
action find
entity Andy McDermott
relation languages spoken, written or signed
type language
['Andy McDermott', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:language . resource:Andy_McDermott property:languages_spoken,_written_or_signed ?a }
[]
language
Clarification for simple ques.
Q526647
SYSTEM
Did you mean Andy McDermott ?
Q184746 Q526647
(Q184746,P1412,c(Q34770)) (Q526647,P1412,c(Q34770))
[ANSWER]
['Q184746', 'P1412', {'concept': 'Q34770'}] ['Q526647', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q34770 . resource:Q526647 property:P1412 ?a }
Jane Goodall Andy McDermott
Did you mean Andy McDermott ?
Andy McDermott
['Jane Goodall', 'languages spoken, written or signed', {'concept': 'language'}] ['Andy McDermott', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:language . resource:Andy_McDermott property:languages_spoken,_written_or_signed ?a }
[]
Simple Question (Coreferenced)
USER
Yes
(Q526647,P1412,c(Q34770))
['Q526647', 'P1412', {'concept': 'Q34770'}]
['Andy McDermott', 'languages spoken, written or signed', {'concept': 'language'}]
[]
Q1860
SYSTEM
English
Q1860
(Q526647,P1412,c(Q34770))
action filter_type
action find
entity Q526647
relation P1412
type Q34770
[ANSWER] is that person capable of writing
['Q526647', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q34770 . resource:Q526647 property:P1412 ?a }
English
English is that person capable of writing
English
action filter_type
action find
entity Andy McDermott
relation languages spoken, written or signed
type language
['Andy McDermott', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:language . resource:Andy_McDermott property:languages_spoken,_written_or_signed ?a }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q184746
P1050
Q2057971
USER
Which health problem does Jane Goodall have ?
(Q184746,P1050,c(Q2057971))
action filter_type
action find
entity Q184746
relation P1050
type Q2057971
['Q184746', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q2057971 . resource:Q184746 property:P1050 ?e }
Jane Goodall
action filter_type
action find
entity Jane Goodall
relation medical condition
type health problem
['Jane Goodall', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:health_problem . resource:Jane_Goodall property:medical_condition ?e }
[]
health problem
Q244438
SYSTEM
prosopagnosia
Q244438
(Q184746,P1050,c(Q2057971))
action filter_type
action find
entity Q184746
relation P1050
type Q2057971
Jane Goodall has a [ANSWER]
['Q184746', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q2057971 . resource:Q184746 property:P1050 ?e }
prosopagnosia
Jane Goodall has a prosopagnosia
prosopagnosia
action filter_type
action find
entity Jane Goodall
relation medical condition
type health problem
['Jane Goodall', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:health_problem . resource:Jane_Goodall property:medical_condition ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q184746
P108
Q163740
USER
Who is the employer of that person ?
(Q244438,P108,c(Q163740))
action filter_type
action find
entity Q184746
relation P108
type Q163740
['Q244438', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?n WHERE { resource:Q184746 property:P108 ?n . ?n rdf:type ontology:Q163740 }
Jane Goodall
action filter_type
action find
entity Jane Goodall
relation employer
type nonprofit organization
['prosopagnosia', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?n WHERE { resource:Jane_Goodall property:employer ?n . ?n rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q4614
SYSTEM
University of Southern California
Q4614
(Q244438,P108,c(Q163740))
action filter_type
action find
entity Q184746
relation P108
type Q163740
The employer of that person is the [ANSWER]
['Q244438', 'P108', {'concept': 'Q163740'}]
SELECT DISTINCT ?n WHERE { resource:Q184746 property:P108 ?n . ?n rdf:type ontology:Q163740 }
University of Southern California
The employer of that person is the University of Southern California
University of Southern California
action filter_type
action find
entity Jane Goodall
relation employer
type nonprofit organization
['prosopagnosia', 'employer', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?n WHERE { resource:Jane_Goodall property:employer ?n . ?n rdf:type ontology:nonprofit_organization }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q8261 Q526647
P136 P50
Q2342494
USER
Which collectables have Andy McDermott as their author and have novel as their type ?
AND((c(Q2342494),P50,Q526647), (c(Q2342494),P136,Q8261))
action filter_type
action intersection
action find_reverse
entity Q526647
relation P50
action find_reverse
entity Q8261
relation P136
type Q2342494
{'AND': [[{'concept': 'Q2342494'}, 'P50', 'Q526647'], [{'concept': 'Q2342494'}, 'P136', 'Q8261']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q2342494 . ?w property:P50 resource:Q526647 . ?w property:P136 resource:Q8261 }
novel Andy McDermott
action filter_type
action intersection
action find_reverse
entity Andy McDermott
relation author
action find_reverse
entity novel
relation genre
type collectable
{'AND': [[{'concept': 'collectable'}, 'author', 'Andy McDermott'], [{'concept': 'collectable'}, 'genre', 'novel']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:collectable . ?w property:author resource:Andy_McDermott . ?w property:genre resource:novel }
[]
collectable
Q3796041 Q3795733
SYSTEM
The tomb of Hercules, The Secret of Excalibur
Q3796041 Q3795733
AND((c(Q2342494),P50,Q526647), (c(Q2342494),P136,Q8261))
action filter_type
action intersection
action find_reverse
entity Q526647
relation P50
action find_reverse
entity Q8261
relation P136
type Q2342494
[ANSWERS] have Andy McDermott as their author and have novel as their type
{'AND': [[{'concept': 'Q2342494'}, 'P50', 'Q526647'], [{'concept': 'Q2342494'}, 'P136', 'Q8261']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q2342494 . ?w property:P50 resource:Q526647 . ?w property:P136 resource:Q8261 }
The tomb of Hercules The Secret of Excalibur
The tomb of Hercules and The Secret of Excalibur have Andy McDermott as their author and have novel as their type
The tomb of Hercules The Secret of Excalibur
action filter_type
action intersection
action find_reverse
entity Andy McDermott
relation author
action find_reverse
entity novel
relation genre
type collectable
{'AND': [[{'concept': 'collectable'}, 'author', 'Andy McDermott'], [{'concept': 'collectable'}, 'genre', 'novel']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:collectable . ?w property:author resource:Andy_McDermott . ?w property:genre resource:novel }
[]