Simple Question (Direct)
Simple Question
Q3039324
P21
Q290
USER
Which sex does Tony D'Amario belong to ?
(Q3039324,P21,c(Q290))
action filter_type
action find
entity Q3039324
relation P21
type Q290
['Q3039324', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q3039324 property:P21 ?l . ?l rdf:type ontology:Q290 }
Tony D'Amario
action filter_type
action find
entity Tony D'Amario
relation gender
type sex
["Tony D'Amario", 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Tony_D'Amario property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3039324,P21,c(Q290))
action filter_type
action find
entity Q3039324
relation P21
type Q290
Tony D ' Amario belongs to [ANSWER]
['Q3039324', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q3039324 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
Tony D ' Amario belongs to male
male
action filter_type
action find
entity Tony D'Amario
relation gender
type sex
["Tony D'Amario", 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Tony_D'Amario property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3039324
P161
Q838948
USER
Which works of art do that person star in ?
(c(Q838948),P161,Q6581097)
action filter_type
action find_reverse
entity Q3039324
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q6581097']
SELECT DISTINCT ?g WHERE { ?g property:P161 resource:Q3039324 . ?g rdf:type ontology:Q838948 }
Tony D'Amario
action filter_type
action find_reverse
entity Tony D'Amario
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'male']
SELECT DISTINCT ?g WHERE { ?g property:cast_member resource:Tony_D'Amario . ?g rdf:type ontology:work_of_art }
[]
work of art
Q70069 Q1672060 Q1140257
SYSTEM
District 13, Last Hour, The Messenger: The Story of Joan of Arc
Q70069 Q1672060 Q1140257
(c(Q838948),P161,Q6581097)
action filter_type
action find_reverse
entity Q3039324
relation P161
type Q838948
That person star in [ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q6581097']
SELECT DISTINCT ?g WHERE { ?g property:P161 resource:Q3039324 . ?g rdf:type ontology:Q838948 }
District 13 Last Hour The Messenger: The Story of Joan of Arc
That person star in District 13, Last Hour and The Messenger: The Story of Joan of Arc
District 13 Last Hour The Messenger: The Story of Joan of Arc
action filter_type
action find_reverse
entity Tony D'Amario
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'male']
SELECT DISTINCT ?g WHERE { ?g property:cast_member resource:Tony_D'Amario . ?g rdf:type ontology:work_of_art }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P161
Q502895
USER
How many people were casted in that work of art ?
(Q70069,P161,c(Q502895))
['Q70069', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q70069 property:Q3297652 ?z . ?z rdf:type ontology:Q502895 }
['District 13', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:District_13 property:cast_member ?z . ?z rdf:type ontology:common_name }
[]
common name
Quantitative|Count|Single entity type|Clarification
Q1672060
SYSTEM
Did you mean Last Hour ?
(Q70069,P161,c(Q502895)) (Q1672060,P161,c(Q502895)) (Q1140257,P161,c(Q502895))
[ANSWER]
['Q70069', 'P161', {'concept': 'Q502895'}] ['Q1672060', 'P161', {'concept': 'Q502895'}] ['Q1140257', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q70069 property:Q3297652 ?z . ?z rdf:type ontology:Q502895 }
Did you mean Last Hour ?
Last Hour
['District 13', 'cast member', {'concept': 'common name'}] ['Last Hour', 'cast member', {'concept': 'common name'}] ['The Messenger: The Story of Joan of Arc', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:District_13 property:cast_member ?z . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant District 13. Could you tell me the answer for that?
(Q70069,P161,c(Q502895))
Q70069
['Q70069', 'P161', {'concept': 'Q502895'}]
['District 13', 'cast member', {'concept': 'common name'}]
[]
SYSTEM
15
Q3369747 Q284995 Q1695127 Q3287751 Q3470839 Q3272811 Q3084231 Q3566408 Q3039324 Q3269248 Q463361 Q2830228 Q3217852 Q333814 Q511489
(Q70069,P161,c(Q502895))
[ANSWER]
['Q70069', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q70069 property:Q3297652 ?z . ?z rdf:type ontology:Q502895 }
Patrick Olivier La Fouine Ludovic Berthillot Marc Andréoni Samir Guesmi MC Jean Gab'1 François Chattot Warren Zavatta Tony D'Amario Lyes Salem Dany Verissimo Alain Rimoux Larbi Naceri David Belle Cyril Raffaelli
15
['District 13', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:District_13 property:cast_member ?z . ?z rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q543347 Q1672060
P161
Q502895
USER
Which people were casted in Last Hour or Attack of the 50 Foot Woman ?
OR((Q1672060,P161,c(Q502895)), (Q543347,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1672060
relation P161
action find
entity Q543347
relation P161
type Q502895
{'OR': [['Q1672060', 'P161', {'concept': 'Q502895'}], ['Q543347', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . { ?j property:P161 ?m . VALUES ( ?j ) { ( resource:Q1672060 ) ( resource:Q543347 ) } } }
Attack of the 50 Foot Woman Last Hour
action filter_type
action union
action find
entity Last Hour
relation cast member
action find
entity Attack of the 50 Foot Woman
relation cast member
type common name
{'OR': [['Last Hour', 'cast member', {'concept': 'common name'}], ['Attack of the 50 Foot Woman', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . { ?j property:cast_member ?m . VALUES ( ?j ) { ( resource:Last_Hour ) ( resource:Attack_of_the_50_Foot_Woman ) } } }
[]
common name
Q215511 Q4356472 Q6388600 Q960993 Q220584 Q207596 Q187038 Q3002834 Q35011 Q443121
SYSTEM
Some of them are Otto Waldis, Allison Hayes, Ken Terrell, Lewis Arquette, Michael Madsen, Daryl Hannah, David Carradine, Cristi Conaway, Frances Fisher, Yvette Vickers
Q35011 Q6388600 Q443121 Q237152 Q432940 Q220584 Q3039324 Q561666 Q207596 Q3308484 Q187038 Q19282008 Q3002834 Q1645740 Q215511 Q960993 Q447892 Q4356472 Q8012623
OR((Q1672060,P161,c(Q502895)), (Q543347,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1672060
relation P161
action find
entity Q543347
relation P161
type Q502895
As [ANSWERS] were casted in Last Hour or Attack of the 50 Foot Woman
{'OR': [['Q1672060', 'P161', {'concept': 'Q502895'}], ['Q543347', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . { ?j property:P161 ?m . VALUES ( ?j ) { ( resource:Q1672060 ) ( resource:Q543347 ) } } }
Frances Fisher Ken Terrell Yvette Vickers Mónica Cruz Daniel Baldwin Michael Madsen Tony D'Amario William Windom Daryl Hannah Michael Ross David Carradine George Douglas Cristi Conaway Paul Benedict Otto Waldis Lewis Arquette Paul Sorvino Allison Hayes William Hudson
As Otto Waldis, Allison Hayes, Ken Terrell, Lewis Arquette, Michael Madsen, Daryl Hannah, David Carradine, Cristi Conaway, Frances Fisher and Yvette Vickers were casted in Last Hour or Attack of the 50 Foot Woman
Otto Waldis Allison Hayes Ken Terrell Lewis Arquette Michael Madsen Daryl Hannah David Carradine Cristi Conaway Frances Fisher Yvette Vickers
action filter_type
action union
action find
entity Last Hour
relation cast member
action find
entity Attack of the 50 Foot Woman
relation cast member
type common name
{'OR': [['Last Hour', 'cast member', {'concept': 'common name'}], ['Attack of the 50 Foot Woman', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . { ?j property:cast_member ?m . VALUES ( ?j ) { ( resource:Last_Hour ) ( resource:Attack_of_the_50_Foot_Woman ) } } }
[]