Simple Question (Direct)
Simple Question
Q365844
P26
Q502895
USER
Who is the spouse of Jerry Weintraub ?
(Q365844,P26,c(Q502895))
action filter_type
action find
entity Q365844
relation P26
type Q502895
['Q365844', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q365844 property:P26 ?h . ?h rdf:type ontology:Q502895 }
Jerry Weintraub
action filter_type
action find
entity Jerry Weintraub
relation spouse
type common name
['Jerry Weintraub', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Jerry_Weintraub property:spouse ?h . ?h rdf:type ontology:common_name }
[]
common name
Q274704
SYSTEM
Jane Morgan
Q274704
(Q365844,P26,c(Q502895))
action filter_type
action find
entity Q365844
relation P26
type Q502895
The spouse of Jerry Weintraub is Lady [ANSWER]
['Q365844', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q365844 property:P26 ?h . ?h rdf:type ontology:Q502895 }
Jane Morgan
The spouse of Jerry Weintraub is Lady Jane Morgan
Jane Morgan
action filter_type
action find
entity Jerry Weintraub
relation spouse
type common name
['Jerry Weintraub', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Jerry_Weintraub property:spouse ?h . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q365844
P162
Q838948
USER
Which works of art have been produced by Jerry Weintraub ?
(c(Q838948),P162,Q365844)
action filter_type
action find_reverse
entity Q365844
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q365844']
SELECT DISTINCT ?r WHERE { ?r property:P162 resource:Q365844 . ?r rdf:type ontology:Q838948 }
Jerry Weintraub
action filter_type
action find_reverse
entity Jerry Weintraub
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Jerry Weintraub']
SELECT DISTINCT ?r WHERE { ?r property:producer resource:Jerry_Weintraub . ?r rdf:type ontology:work_of_art }
[]
work of art
Q205447 Q635632 Q327685
SYSTEM
Ocean's Eleven, Ocean's Thirteen, The Karate Kid
Q289127 Q1213253 Q2016342 Q7452206 Q5688590 Q4127732 Q1138936 Q1540328 Q327685 Q846679 Q1586077 Q494985 Q9351232 Q17361809 Q1402883 Q471423 Q205447 Q952511 Q1418251 Q635632 Q463927 Q1217565 Q930887
(c(Q838948),P162,Q365844)
action filter_type
action find_reverse
entity Q365844
relation P162
type Q838948
The [ANSWERS] have been produced by Jerry Weintraub
[{'concept': 'Q838948'}, 'P162', 'Q365844']
SELECT DISTINCT ?r WHERE { ?r property:P162 resource:Q365844 . ?r rdf:type ontology:Q838948 }
The Next Karate Kid The Gods Must Be Crazy II Oh, God! September 30, 1955 Pure Country All Night Long Soldier My Stepmother Is an Alien The Karate Kid The Karate Kid The Karate Kid, Part III The Avengers Happy New Year The Legend of Tarzan Nancy Drew The Specialist Ocean's Eleven Cruising The Karate Kid, Part II Ocean's Thirteen Diner Troop Beverly Hills Vegas Vacation
The Ocean's Eleven, Ocean's Thirteen and The Karate Kid have been produced by Jerry Weintraub
Ocean's Eleven Ocean's Thirteen The Karate Kid
action filter_type
action find_reverse
entity Jerry Weintraub
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Jerry Weintraub']
SELECT DISTINCT ?r WHERE { ?r property:producer resource:Jerry_Weintraub . ?r rdf:type ontology:work_of_art }
[]
Clarification
Simple Question|Single Entity|Indirect
Q327685
P344
Q502895
USER
Who is appointed as the cinematographer of that work of art ?
(Q327685,P344,c(Q502895))
action filter_type
action find
entity Q327685
relation P344
type Q502895
['Q327685', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q327685 property:P344 ?e . ?e rdf:type ontology:Q502895 }
The Karate Kid
action filter_type
action find
entity The Karate Kid
relation director of photography
type common name
['The Karate Kid', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:The_Karate_Kid property:director_of_photography ?e . ?e rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q205447
SYSTEM
Did you mean Ocean's Eleven ?
Q205447 Q635632 Q327685
(Q205447,P344,c(Q502895)) (Q635632,P344,c(Q502895)) (Q327685,P344,c(Q502895))
[ANSWER]
['Q205447', 'P344', {'concept': 'Q502895'}] ['Q635632', 'P344', {'concept': 'Q502895'}] ['Q327685', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q327685 property:P344 ?e . ?e rdf:type ontology:Q502895 }
Ocean's Eleven Ocean's Thirteen The Karate Kid
Did you mean Ocean's Eleven ?
Ocean's Eleven
["Ocean's Eleven", 'director of photography', {'concept': 'common name'}] ["Ocean's Thirteen", 'director of photography', {'concept': 'common name'}] ['The Karate Kid', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:The_Karate_Kid property:director_of_photography ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant The Karate Kid. Could you tell me the answer for that?
(Q327685,P344,c(Q502895))
Q327685
['Q327685', 'P344', {'concept': 'Q502895'}]
['The Karate Kid', 'director of photography', {'concept': 'common name'}]
[]
Q132112
SYSTEM
Roger Pratt
Q132112
(Q327685,P344,c(Q502895))
action filter_type
action find
entity Q327685
relation P344
type Q502895
[ANSWER] is appointed as the cinematographer of that work of art
['Q327685', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q327685 property:P344 ?e . ?e rdf:type ontology:Q502895 }
Roger Pratt
Roger Pratt is appointed as the cinematographer of that work of art
Roger Pratt
action filter_type
action find
entity The Karate Kid
relation director of photography
type common name
['The Karate Kid', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:The_Karate_Kid property:director_of_photography ?e . ?e rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P144
Q838948 Q166142 Q201658
USER
Which works of art do max number of applications or film genres extend upon ?
(c(Q166142)|c(Q201658),P144,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q166142
action find_reverse_tuple_counts
relation P144
type Q838948
type Q201658
[[{'concept': 'Q166142'}, {'concept': 'Q201658'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) ?i WHERE { { ?a property:P144 ?i . ?i rdf:type ontology:Q838948 . ?a rdf:type ontology:Q166142 } UNION { ?i rdf:type ontology:Q838948 . ?a rdf:type ontology:Q201658 . ?a property:P144 ?i } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) ?b WHERE { ?h rdf:type ?m . VALUES ( ?m ) { ( ontology:Q201658 ) ( ontology:Q166142 ) } } GROUP BY ?b } . FILTER ( ?o = ?j ) }
action argmax
action union
action find_reverse_tuple_counts
relation based on
type work of art
type application
action find_reverse_tuple_counts
relation based on
type work of art
type film genre
[[{'concept': 'application'}, {'concept': 'film genre'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) ?i WHERE { { ?a property:based_on ?i . ?i rdf:type ontology:work_of_art . ?a rdf:type ontology:application } UNION { ?i rdf:type ontology:work_of_art . ?a rdf:type ontology:film_genre . ?a property:based_on ?i } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) ?b WHERE { ?h rdf:type ?m . VALUES ( ?m ) { ( ontology:film_genre ) ( ontology:application ) } } GROUP BY ?b } . FILTER ( ?o = ?j ) }
[]
work of art application film genre
Q41567
SYSTEM
Hamlet
Q41567
(c(Q166142)|c(Q201658),P144,c(Q838948))
action argmax
action union
action find_reverse_tuple_counts
relation P144
type Q838948
type Q166142
action find_reverse_tuple_counts
relation P144
type Q838948
type Q201658
Which works of art max number of applications or film genres extend upon
[[{'concept': 'Q166142'}, {'concept': 'Q201658'}], 'P144', {'concept': 'Q838948'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) ?i WHERE { { ?a property:P144 ?i . ?i rdf:type ontology:Q838948 . ?a rdf:type ontology:Q166142 } UNION { ?i rdf:type ontology:Q838948 . ?a rdf:type ontology:Q201658 . ?a property:P144 ?i } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) ?b WHERE { ?h rdf:type ?m . VALUES ( ?m ) { ( ontology:Q201658 ) ( ontology:Q166142 ) } } GROUP BY ?b } . FILTER ( ?o = ?j ) }
Hamlet
Which works of art max number of applications or film genres extend upon
Hamlet
action argmax
action union
action find_reverse_tuple_counts
relation based on
type work of art
type application
action find_reverse_tuple_counts
relation based on
type work of art
type film genre
[[{'concept': 'application'}, {'concept': 'film genre'}], 'based on', {'concept': 'work of art'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) ?i WHERE { { ?a property:based_on ?i . ?i rdf:type ontology:work_of_art . ?a rdf:type ontology:application } UNION { ?i rdf:type ontology:work_of_art . ?a rdf:type ontology:film_genre . ?a property:based_on ?i } } GROUP BY ?i } } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) ?b WHERE { ?h rdf:type ?m . VALUES ( ?m ) { ( ontology:film_genre ) ( ontology:application ) } } GROUP BY ?b } . FILTER ( ?o = ?j ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q132112
P27
Q15617994
USER
How many administrative territories are Roger Pratt an inhabitant of ?
(Q132112,P27,c(Q15617994))
action count
action filter_type
action find
entity Q132112
relation P27
type Q15617994
['Q132112', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Q132112 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
Roger Pratt
action count
action filter_type
action find
entity Roger Pratt
relation country of citizenship
type designation for an administrative territorial entity
['Roger Pratt', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Roger_Pratt property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q145
(Q132112,P27,c(Q15617994))
action count
action filter_type
action find
entity Q132112
relation P27
type Q15617994
[ANSWER]
['Q132112', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Q132112 property:P27 ?x . ?x rdf:type ontology:Q15617994 }
United Kingdom
1
action count
action filter_type
action find
entity Roger Pratt
relation country of citizenship
type designation for an administrative territorial entity
['Roger Pratt', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Roger_Pratt property:country_of_citizenship ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q132112
P1411
Q4220917
USER
Which film award was that person a recipient of ?
action filter_type
action find
entity Q132112
relation P1411
type Q4220917
SELECT DISTINCT ?l WHERE { resource:Q132112 property:P1411 ?l . ?l rdf:type ontology:Q4220917 }
Roger Pratt
action filter_type
action find
entity Roger Pratt
relation nominated for
type film award
SELECT DISTINCT ?l WHERE { resource:Roger_Pratt property:nominated_for ?l . ?l rdf:type ontology:film_award }
[]
film award
Q131520
SYSTEM
Academy Award for Best Cinematography
Q131520
action filter_type
action find
entity Q132112
relation P1411
type Q4220917
The [ANSWER] was that person a recipient of
SELECT DISTINCT ?l WHERE { resource:Q132112 property:P1411 ?l . ?l rdf:type ontology:Q4220917 }
Academy Award for Best Cinematography
The Academy Award for Best Cinematography was that person a recipient of
Academy Award for Best Cinematography
action filter_type
action find
entity Roger Pratt
relation nominated for
type film award
SELECT DISTINCT ?l WHERE { resource:Roger_Pratt property:nominated_for ?l . ?l rdf:type ontology:film_award }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q131520 Q1215005
P1411
Q838948
USER
Was Jonathan Livingston Seagull a nomination for that film award ?
(Q1215005,P1411,Q131520)
action is_in
entity Q131520
action find
entity Q1215005
relation P1411
['Q1215005', 'P1411', 'Q131520']
ASK WHERE { resource:Q1215005 property:P1411 resource:Q131520 }
Academy Award for Best Cinematography Jonathan Livingston Seagull
action is_in
entity Academy Award for Best Cinematography
action find
entity Jonathan Livingston Seagull
relation nominated for
['Jonathan Livingston Seagull', 'nominated for', 'Academy Award for Best Cinematography']
ASK WHERE { resource:Jonathan_Livingston_Seagull property:nominated_for resource:Academy_Award_for_Best_Cinematography }
[]
work of art
SYSTEM
YES
(Q1215005,P1411,Q131520)
action is_in
entity Q131520
action find
entity Q1215005
relation P1411
[ANSWER]
['Q1215005', 'P1411', 'Q131520']
ASK WHERE { resource:Q1215005 property:P1411 resource:Q131520 }
Yes
action is_in
entity Academy Award for Best Cinematography
action find
entity Jonathan Livingston Seagull
relation nominated for
['Jonathan Livingston Seagull', 'nominated for', 'Academy Award for Best Cinematography']
ASK WHERE { resource:Jonathan_Livingston_Seagull property:nominated_for resource:Academy_Award_for_Best_Cinematography }
[]