Simple Question (Direct)
Simple Question
Q1031075
P161
Q502895
USER
Which people starred in Sweat ?
(Q1031075,P161,c(Q502895))
action filter_type
action find
entity Q1031075
relation P161
type Q502895
['Q1031075', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q1031075 property:P161 ?b }
Sweat
action filter_type
action find
entity Sweat
relation cast member
type common name
['Sweat', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Sweat property:cast_member ?b }
[]
common name
Q40572 Q535608 Q7153925
SYSTEM
Heath Ledger, Inge Hornstra, Paul Tassone
Q6812896 Q7153925 Q535608 Q40572
(Q1031075,P161,c(Q502895))
action filter_type
action find
entity Q1031075
relation P161
type Q502895
[ANSWERS] starred in Sweat
['Q1031075', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q1031075 property:P161 ?b }
Melissa Thomas Paul Tassone Inge Hornstra Heath Ledger
Heath Ledger, Inge Hornstra and Paul Tassone starred in Sweat
Heath Ledger Inge Hornstra Paul Tassone
action filter_type
action find
entity Sweat
relation cast member
type common name
['Sweat', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Sweat property:cast_member ?b }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q40572 Q535608 Q7153925
P161
Q15416
USER
Which television programs have those people in their star cast ?
(c(Q15416),P161,Q40572) (c(Q15416),P161,Q535608) (c(Q15416),P161,Q7153925)
action filter_type
action find_reverse
entity prev_answer
relation P161
type Q15416
[{'concept': 'Q15416'}, 'P161', 'Q40572'] [{'concept': 'Q15416'}, 'P161', 'Q535608'] [{'concept': 'Q15416'}, 'P161', 'Q7153925']
SELECT DISTINCT ?b WHERE { ?b property:P161 ?s . ?b rdf:type ontology:Q15416 . VALUES ( ?s ) { ( resource:Q6812896 ) ( resource:Q7153925 ) ( resource:Q535608 ) } }
Heath Ledger Inge Hornstra Paul Tassone
action filter_type
action find_reverse
entity prev_answer
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Heath Ledger'] [{'concept': 'television program'}, 'cast member', 'Inge Hornstra'] [{'concept': 'television program'}, 'cast member', 'Paul Tassone']
SELECT DISTINCT ?b WHERE { ?b property:cast_member ?s . ?b rdf:type ontology:television_program . VALUES ( ?s ) { ( resource:Melissa_Thomas ) ( resource:Paul_Tassone ) ( resource:Inge_Hornstra ) } }
[]
television program
Q113110 Q16954197 Q1031075
SYSTEM
All Saints, The Code, Sweat
Q1031075 Q1031075 Q1031075 Q113110 Q16954197
(c(Q15416),P161,Q40572) (c(Q15416),P161,Q535608) (c(Q15416),P161,Q7153925)
action filter_type
action find_reverse
entity prev_answer
relation P161
type Q15416
[ANSWERS] have those people in their star cast
[{'concept': 'Q15416'}, 'P161', 'Q40572'] [{'concept': 'Q15416'}, 'P161', 'Q535608'] [{'concept': 'Q15416'}, 'P161', 'Q7153925']
SELECT DISTINCT ?b WHERE { ?b property:P161 ?s . ?b rdf:type ontology:Q15416 . VALUES ( ?s ) { ( resource:Q6812896 ) ( resource:Q7153925 ) ( resource:Q535608 ) } }
Sweat Sweat Sweat All Saints The Code
All Saints, The Code and Sweat have those people in their star cast
All Saints The Code Sweat
action filter_type
action find_reverse
entity prev_answer
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Heath Ledger'] [{'concept': 'television program'}, 'cast member', 'Inge Hornstra'] [{'concept': 'television program'}, 'cast member', 'Paul Tassone']
SELECT DISTINCT ?b WHERE { ?b property:cast_member ?s . ?b rdf:type ontology:television_program . VALUES ( ?s ) { ( resource:Melissa_Thomas ) ( resource:Paul_Tassone ) ( resource:Inge_Hornstra ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q113110
P364
Q34770
USER
Which language was used originally for the creation of that television program ?
(Q113110,P364,c(Q34770))
action filter_type
action find
entity Q113110
relation P364
type Q34770
['Q113110', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q34770 . resource:Q113110 property:P364 ?u }
All Saints
action filter_type
action find
entity All Saints
relation original language of work
type language
['All Saints', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:language . resource:All_Saints property:original_language_of_work ?u }
[]
language
Clarification for simple ques.
Q1031075
SYSTEM
Did you mean Sweat ?
Q113110 Q16954197 Q1031075
(Q113110,P364,c(Q34770)) (Q16954197,P364,c(Q34770)) (Q1031075,P364,c(Q34770))
[ANSWER]
['Q113110', 'P364', {'concept': 'Q34770'}] ['Q16954197', 'P364', {'concept': 'Q34770'}] ['Q1031075', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q34770 . resource:Q113110 property:P364 ?u }
All Saints The Code Sweat
Did you mean Sweat ?
Sweat
['All Saints', 'original language of work', {'concept': 'language'}] ['The Code', 'original language of work', {'concept': 'language'}] ['Sweat', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:language . resource:All_Saints property:original_language_of_work ?u }
[]
Simple Question (Coreferenced)
USER
No, I meant All Saints. Could you tell me the answer for that?
(Q113110,P364,c(Q34770))
Q113110
['Q113110', 'P364', {'concept': 'Q34770'}]
['All Saints', 'original language of work', {'concept': 'language'}]
[]
Q1860
SYSTEM
English
Q1860
(Q113110,P364,c(Q34770))
action filter_type
action find
entity Q113110
relation P364
type Q34770
[ANSWER] was used originally for the creation of that television program
['Q113110', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q34770 . resource:Q113110 property:P364 ?u }
English
English was used originally for the creation of that television program
English
action filter_type
action find
entity All Saints
relation original language of work
type language
['All Saints', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:language . resource:All_Saints property:original_language_of_work ?u }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q113110
P161
Q502895
USER
How many people are in All Saints ?
(Q113110,P161,c(Q502895))
action count
action filter_type
action find
entity Q113110
relation P161
type Q502895
['Q113110', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { resource:Q113110 property:P161 ?a . ?a rdf:type ontology:Q502895 }
All Saints
action count
action filter_type
action find
entity All Saints
relation cast member
type common name
['All Saints', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { resource:All_Saints property:cast_member ?a . ?a rdf:type ontology:common_name }
[]
common name
SYSTEM
31
Q4758670 Q7163398 Q1710007 Q465020 Q9033587 Q5974713 Q7407592 Q7279255 Q5670833 Q931712 Q1190584 Q6968234 Q5418987 Q4732744 Q5112381 Q927052 Q4720620 Q6303569 Q6167381 Q7681602 Q6111556 Q541827 Q5548195 Q4886545 Q1279945 Q6181268 Q6289277 Q17308890 Q363876 Q2608802 Q7153925
(Q113110,P161,c(Q502895))
action count
action filter_type
action find
entity Q113110
relation P161
type Q502895
[ANSWER]
['Q113110', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { resource:Q113110 property:P161 ?a . ?a rdf:type ontology:Q502895 }
Andrew Supanz Penne Hackforth-Jones Joy Smithers Martin Lynes Mirrah Foulkes Libby Tanner Sam Healy Rachel Gordon John Howard Mark Priestley Dan Feuerriegel Natalie Saleeba Ewen Leslie Allison Cratchley Christopher Gabardi Erik Thomson Alexandra Davies Judith McGrath Wil Traval Tammy MacIntosh Jack Campbell Conrad Coleby Georgie Parker Ben Tari Jolene Anderson Jeremy Cumpston Josh Quong Tart Clayton Moss John Waters Grant Bowler Paul Tassone
31
action count
action filter_type
action find
entity All Saints
relation cast member
type common name
['All Saints', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { resource:All_Saints property:cast_member ?a . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q113110
P1441
Q15619164
USER
Which abstract being is featured in All Saints ?
(c(Q15619164),P1441,Q113110)
action filter_type
action find_reverse
entity Q113110
relation P1441
type Q15619164
[{'concept': 'Q15619164'}, 'P1441', 'Q113110']
SELECT DISTINCT ?t WHERE { ?t property:P1441 resource:Q113110 . ?t rdf:type ontology:Q15619164 }
All Saints
action filter_type
action find_reverse
entity All Saints
relation present in work
type abstract being
[{'concept': 'abstract being'}, 'present in work', 'All Saints']
SELECT DISTINCT ?t WHERE { ?t property:present_in_work resource:All_Saints . ?t rdf:type ontology:abstract_being }
[]
abstract being
Q16549407
SYSTEM
Claire Anderson
Q16549407
(c(Q15619164),P1441,Q113110)
action filter_type
action find_reverse
entity Q113110
relation P1441
type Q15619164
[ANSWER] is featured in All Saints
[{'concept': 'Q15619164'}, 'P1441', 'Q113110']
SELECT DISTINCT ?t WHERE { ?t property:P1441 resource:Q113110 . ?t rdf:type ontology:Q15619164 }
Claire Anderson
Claire Anderson is featured in All Saints
Claire Anderson
action filter_type
action find_reverse
entity All Saints
relation present in work
type abstract being
[{'concept': 'abstract being'}, 'present in work', 'All Saints']
SELECT DISTINCT ?t WHERE { ?t property:present_in_work resource:All_Saints . ?t rdf:type ontology:abstract_being }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q40572
P161
Q838948
USER
How many works of art do Heath Ledger star in ?
(c(Q838948),P161,Q40572)
action count
action filter_type
action find_reverse
entity Q40572
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q40572']
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { ?x property:P161 resource:Q40572 . ?x rdf:type ontology:Q838948 }
Heath Ledger
action count
action filter_type
action find_reverse
entity Heath Ledger
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Heath Ledger']
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { ?x property:cast_member resource:Heath_Ledger . ?x rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
19
Q836622 Q2699724 Q114076 Q1124875 Q1471255 Q816772 Q1140623 Q646633 Q942958 Q169082 Q160618 Q391540 Q391542 Q578344 Q280928 Q3050175 Q2905586 Q163872 Q707880
(c(Q838948),P161,Q40572)
action count
action filter_type
action find_reverse
entity Q40572
relation P161
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q40572']
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { ?x property:P161 resource:Q40572 . ?x rdf:type ontology:Q838948 }
Lords of Dogtown Two Hands A Knight's Tale Monster's Ball The Order I'm Not There Clowning Around The Patriot Casanova 10 Things I Hate About You Brokeback Mountain The Four Feathers Ned Kelly The Imaginarium of Doctor Parnassus Candy Paws Blackrock The Dark Knight The Brothers Grimm
19
action count
action filter_type
action find_reverse
entity Heath Ledger
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Heath Ledger']
SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { ?x property:cast_member resource:Heath_Ledger . ?x rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q181917
P26
Q502895
USER
Which person has David Niven as spouse ?
(c(Q502895),P26,Q181917)
action filter_type
action find
entity Q181917
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q181917']
SELECT DISTINCT ?q WHERE { resource:Q181917 property:P26 ?q . ?q rdf:type ontology:Q502895 }
David Niven
action filter_type
action find
entity David Niven
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'David Niven']
SELECT DISTINCT ?q WHERE { resource:David_Niven property:spouse ?q . ?q rdf:type ontology:common_name }
[]
common name
Q19721428
SYSTEM
Primula Rollo
Q19721428
(c(Q502895),P26,Q181917)
action filter_type
action find
entity Q181917
relation P26
type Q502895
[ANSWER] has David Niven as spouse
[{'concept': 'Q502895'}, 'P26', 'Q181917']
SELECT DISTINCT ?q WHERE { resource:Q181917 property:P26 ?q . ?q rdf:type ontology:Q502895 }
Primula Rollo
Primula Rollo has David Niven as spouse
Primula Rollo
action filter_type
action find
entity David Niven
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'David Niven']
SELECT DISTINCT ?q WHERE { resource:David_Niven property:spouse ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q181917
P40
Q502895
USER
Who is a child of David Niven ?
(Q181917,P40,c(Q502895))
action filter_type
action find
entity Q181917
relation P40
type Q502895
['Q181917', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q181917 property:P40 ?p . ?p rdf:type ontology:Q502895 }
David Niven
action filter_type
action find
entity David Niven
relation child
type common name
['David Niven', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:David_Niven property:child ?p . ?p rdf:type ontology:common_name }
[]
common name
Q5238046
SYSTEM
David Niven, Jr.
Q5238046
(Q181917,P40,c(Q502895))
action filter_type
action find
entity Q181917
relation P40
type Q502895
A child of David Niven is named [ANSWER]
['Q181917', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q181917 property:P40 ?p . ?p rdf:type ontology:Q502895 }
David Niven, Jr.
A child of David Niven is named David Niven, Jr.
David Niven, Jr.
action filter_type
action find
entity David Niven
relation child
type common name
['David Niven', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:David_Niven property:child ?p . ?p rdf:type ontology:common_name }
[]