Simple Question (Direct)
Simple Question
Q236537
P21
Q290
USER
What is the sex of Molly Sims ?
(Q236537,P21,c(Q290))
action filter_type
action find
entity Q236537
relation P21
type Q290
['Q236537', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q236537 property:P21 ?z . ?z rdf:type ontology:Q290 }
Molly Sims
action filter_type
action find
entity Molly Sims
relation gender
type sex
['Molly Sims', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Molly_Sims property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q236537,P21,c(Q290))
action filter_type
action find
entity Q236537
relation P21
type Q290
The sex of Molly Sims is the [ANSWER]
['Q236537', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q236537 property:P21 ?z . ?z rdf:type ontology:Q290 }
female
The sex of Molly Sims is the female
female
action filter_type
action find
entity Molly Sims
relation gender
type sex
['Molly Sims', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Molly_Sims property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q236537
P161
Q838948
USER
Which works of art do Molly Sims star in ?
(c(Q838948),P161,Q236537)
action filter_type
action find_reverse
entity Q236537
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q236537']
SELECT DISTINCT ?a WHERE { ?a property:P161 resource:Q236537 . ?a rdf:type ontology:Q838948 }
Molly Sims
action filter_type
action find_reverse
entity Molly Sims
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Molly Sims']
SELECT DISTINCT ?a WHERE { ?a property:cast_member resource:Molly_Sims . ?a rdf:type ontology:work_of_art }
[]
work of art
Q847646 Q269887 Q815681
SYSTEM
Starsky & Hutch, Yes Man, The Pink Panther 2
Q269887 Q847646 Q998219 Q1418881 Q815681
(c(Q838948),P161,Q236537)
action filter_type
action find_reverse
entity Q236537
relation P161
type Q838948
Molly Sims star [ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q236537']
SELECT DISTINCT ?a WHERE { ?a property:P161 resource:Q236537 . ?a rdf:type ontology:Q838948 }
Yes Man Starsky & Hutch The Benchwarmers Fired Up! The Pink Panther 2
Molly Sims star Starsky & Hutch, Yes Man and The Pink Panther 2
Starsky & Hutch Yes Man The Pink Panther 2
action filter_type
action find_reverse
entity Molly Sims
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Molly Sims']
SELECT DISTINCT ?a WHERE { ?a property:cast_member resource:Molly_Sims . ?a rdf:type ontology:work_of_art }
[]
Clarification
Simple Question|Single Entity|Indirect
Q815681
P58
Q502895
USER
Which people wrote the script for that work of art ?
(Q815681,P58,c(Q502895))
action filter_type
action find
entity Q815681
relation P58
type Q502895
['Q815681', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q815681 property:P58 ?s }
The Pink Panther 2
action filter_type
action find
entity The Pink Panther 2
relation screenwriter
type common name
['The Pink Panther 2', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:The_Pink_Panther_2 property:screenwriter ?s }
[]
common name
Clarification for simple ques.
Q815681
SYSTEM
Did you mean The Pink Panther 2 ?
Q847646 Q269887 Q815681
(Q847646,P58,c(Q502895)) (Q269887,P58,c(Q502895)) (Q815681,P58,c(Q502895))
[ANSWER]
['Q847646', 'P58', {'concept': 'Q502895'}] ['Q269887', 'P58', {'concept': 'Q502895'}] ['Q815681', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q815681 property:P58 ?s }
Starsky & Hutch Yes Man The Pink Panther 2
Did you mean The Pink Panther 2 ?
The Pink Panther 2
['Starsky & Hutch', 'screenwriter', {'concept': 'common name'}] ['Yes Man', 'screenwriter', {'concept': 'common name'}] ['The Pink Panther 2', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:The_Pink_Panther_2 property:screenwriter ?s }
[]
Simple Question (Coreferenced)
USER
Yes
(Q815681,P58,c(Q502895))
['Q815681', 'P58', {'concept': 'Q502895'}]
['The Pink Panther 2', 'screenwriter', {'concept': 'common name'}]
[]
Q16473 Q5965293
SYSTEM
Steve Martin, Scott Neustadter
Q16473 Q5965293
(Q815681,P58,c(Q502895))
action filter_type
action find
entity Q815681
relation P58
type Q502895
[ANSWERS] wrote the script for that work of art
['Q815681', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q815681 property:P58 ?s }
Steve Martin Scott Neustadter
Steve Martin and Scott Neustadter wrote the script for that work of art
Steve Martin Scott Neustadter
action filter_type
action find
entity The Pink Panther 2
relation screenwriter
type common name
['The Pink Panther 2', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:The_Pink_Panther_2 property:screenwriter ?s }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q3926972
P58
Q838948
USER
Are those people a screenwriter of Quando c'era lui... caro lei! ?
(Q3926972,P58,Q16473) (Q3926972,P58,Q5965293)
action is_in
entity prev_answer
action find
entity Q3926972
relation P58
['Q3926972', 'P58', 'Q16473'] ['Q3926972', 'P58', 'Q5965293']
ASK WHERE { resource:Q3926972 property:P58 ?u . VALUES ( ?u ) { ( resource:Q16473 ) ( resource:Q5965293 ) } }
Quando c'era lui... caro lei!
action is_in
entity prev_answer
action find
entity Quando c'era lui... caro lei!
relation screenwriter
["Quando c'era lui... caro lei!", 'screenwriter', 'Steve Martin'] ["Quando c'era lui... caro lei!", 'screenwriter', 'Scott Neustadter']
ASK WHERE { resource:Quando_c'era_lui..._caro_lei! property:screenwriter ?u . VALUES ( ?u ) { ( resource:Steve_Martin ) ( resource:Scott_Neustadter ) } }
[]
work of art
SYSTEM
NO
(Q3926972,P58,Q16473) (Q3926972,P58,Q5965293)
action is_in
entity prev_answer
action find
entity Q3926972
relation P58
[ANSWER]
['Q3926972', 'P58', 'Q16473'] ['Q3926972', 'P58', 'Q5965293']
ASK WHERE { resource:Q3926972 property:P58 ?u . VALUES ( ?u ) { ( resource:Q16473 ) ( resource:Q5965293 ) } }
No
action is_in
entity prev_answer
action find
entity Quando c'era lui... caro lei!
relation screenwriter
["Quando c'era lui... caro lei!", 'screenwriter', 'Steve Martin'] ["Quando c'era lui... caro lei!", 'screenwriter', 'Scott Neustadter']
ASK WHERE { resource:Quando_c'era_lui..._caro_lei! property:screenwriter ?u . VALUES ( ?u ) { ( resource:Steve_Martin ) ( resource:Scott_Neustadter ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q16473
P1346
Q618779 Q4220917
USER
How many awards or film awards were Steve Martin decalred as a champion of ?
(c(Q618779),P1346,Q16473) (c(Q4220917),P1346,Q16473)
action count
action union
action filter_type
action find_reverse
entity Q16473
relation P1346
type Q618779
action filter_type
action find_reverse
entity Q16473
relation P1346
type Q4220917
[{'concept': 'Q618779'}, 'P1346', 'Q16473'] [{'concept': 'Q4220917'}, 'P1346', 'Q16473']
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { ?z rdf:type ?g . VALUES ( ?g ) { ( ontology:Q618779 ) ( ontology:Q4220917 ) } }
Steve Martin
action count
action union
action filter_type
action find_reverse
entity Steve Martin
relation winner
type award
action filter_type
action find_reverse
entity Steve Martin
relation winner
type film award
[{'concept': 'award'}, 'winner', 'Steve Martin'] [{'concept': 'film award'}, 'winner', 'Steve Martin']
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { ?z rdf:type ?g . VALUES ( ?g ) { ( ontology:award ) ( ontology:film_award ) } }
[]
award film award
SYSTEM
3
Q503034 Q1967731 Q1899850
(c(Q618779),P1346,Q16473) (c(Q4220917),P1346,Q16473)
action count
action union
action filter_type
action find_reverse
entity Q16473
relation P1346
type Q618779
action filter_type
action find_reverse
entity Q16473
relation P1346
type Q4220917
[ANSWER]
[{'concept': 'Q618779'}, 'P1346', 'Q16473'] [{'concept': 'Q4220917'}, 'P1346', 'Q16473']
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { ?z rdf:type ?g . VALUES ( ?g ) { ( ontology:Q618779 ) ( ontology:Q4220917 ) } }
Los Angeles Film Critics Association Award for Best Actor National Society of Film Critics Award for Best Actor Mark Twain Prize for American Humor
3
action count
action union
action filter_type
action find_reverse
entity Steve Martin
relation winner
type award
action filter_type
action find_reverse
entity Steve Martin
relation winner
type film award
[{'concept': 'award'}, 'winner', 'Steve Martin'] [{'concept': 'film award'}, 'winner', 'Steve Martin']
SELECT DISTINCT ( COUNT ( ?z ) AS ?c ) WHERE { ?z rdf:type ?g . VALUES ( ?g ) { ( ontology:award ) ( ontology:film_award ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16473
P1412
Q34770
USER
Which language is spoken by Steve Martin ?
(Q16473,P1412,c(Q34770))
action filter_type
action find
entity Q16473
relation P1412
type Q34770
['Q16473', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q16473 property:P1412 ?o . ?o rdf:type ontology:Q34770 }
Steve Martin
action filter_type
action find
entity Steve Martin
relation languages spoken, written or signed
type language
['Steve Martin', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:Steve_Martin property:languages_spoken,_written_or_signed ?o . ?o rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q16473,P1412,c(Q34770))
action filter_type
action find
entity Q16473
relation P1412
type Q34770
It [ANSWER] is spoken by Steve Martin
['Q16473', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?o WHERE { resource:Q16473 property:P1412 ?o . ?o rdf:type ontology:Q34770 }
English
It English is spoken by Steve Martin
English
action filter_type
action find
entity Steve Martin
relation languages spoken, written or signed
type language
['Steve Martin', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?o WHERE { resource:Steve_Martin property:languages_spoken,_written_or_signed ?o . ?o rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q9027761
Q34770
USER
And also tell me about Manuel Díaz Rubio?
(Q9027761,P1412,c(Q34770))
action filter_type
action find
entity Q9027761
relation P1412
type Q34770
['Q9027761', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q9027761 property:P1412 ?b . ?b rdf:type ontology:Q34770 }
Manuel Díaz Rubio
action filter_type
action find
entity Manuel Díaz Rubio
relation languages spoken, written or signed
type language
['Manuel Díaz Rubio', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Manuel_Díaz_Rubio property:languages_spoken,_written_or_signed ?b . ?b rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q9027761,P1412,c(Q34770))
action filter_type
action find
entity Q9027761
relation P1412
type Q34770
[ANSWER]
['Q9027761', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q9027761 property:P1412 ?b . ?b rdf:type ontology:Q34770 }
Spanish
Spanish
action filter_type
action find
entity Manuel Díaz Rubio
relation languages spoken, written or signed
type language
['Manuel Díaz Rubio', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Manuel_Díaz_Rubio property:languages_spoken,_written_or_signed ?b . ?b rdf:type ontology:language }
[]