Simple Question (Direct)
Simple Question
Q7717857
P344
Q502895
USER
Who is the director of photography for The Big Wheel ?
(Q7717857,P344,c(Q502895))
action filter_type
action find
entity Q7717857
relation P344
type Q502895
['Q7717857', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q7717857 property:P344 ?d . ?d rdf:type ontology:Q502895 }
The Big Wheel
action filter_type
action find
entity The Big Wheel
relation director of photography
type common name
['The Big Wheel', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:The_Big_Wheel property:director_of_photography ?d . ?d rdf:type ontology:common_name }
[]
common name
Q1356226
SYSTEM
Ernest Laszlo
Q1356226
(Q7717857,P344,c(Q502895))
action filter_type
action find
entity Q7717857
relation P344
type Q502895
The director of photography for The Big Wheel is the [ANSWER]
['Q7717857', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q7717857 property:P344 ?d . ?d rdf:type ontology:Q502895 }
Ernest Laszlo
The director of photography for The Big Wheel is the Ernest Laszlo
Ernest Laszlo
action filter_type
action find
entity The Big Wheel
relation director of photography
type common name
['The Big Wheel', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:The_Big_Wheel property:director_of_photography ?d . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1356226
P166
Q4220917
USER
Which film award was received by that person ?
(Q1356226,P166,c(Q4220917))
action filter_type
action find
entity Q1356226
relation P166
type Q4220917
['Q1356226', 'P166', {'concept': 'Q4220917'}]
SELECT DISTINCT ?c WHERE { resource:Q1356226 property:P166 ?c . ?c rdf:type ontology:Q4220917 }
Ernest Laszlo
action filter_type
action find
entity Ernest Laszlo
relation award received
type film award
['Ernest Laszlo', 'award received', {'concept': 'film award'}]
SELECT DISTINCT ?c WHERE { resource:Ernest_Laszlo property:award_received ?c . ?c rdf:type ontology:film_award }
[]
film award
Q21995139
SYSTEM
Academy Award for Best Cinematography, Black-and-White
Q21995139
(Q1356226,P166,c(Q4220917))
action filter_type
action find
entity Q1356226
relation P166
type Q4220917
[ANSWER] was received by that person
['Q1356226', 'P166', {'concept': 'Q4220917'}]
SELECT DISTINCT ?c WHERE { resource:Q1356226 property:P166 ?c . ?c rdf:type ontology:Q4220917 }
Academy Award for Best Cinematography, Black-and-White
Academy Award for Best Cinematography, Black-and-White was received by that person
Academy Award for Best Cinematography, Black-and-White
action filter_type
action find
entity Ernest Laszlo
relation award received
type film award
['Ernest Laszlo', 'award received', {'concept': 'film award'}]
SELECT DISTINCT ?c WHERE { resource:Ernest_Laszlo property:award_received ?c . ?c rdf:type ontology:film_award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1356226
P1411
Q4220917
USER
Which film awards were Ernest Laszlo nominated for ?
(Q1356226,P1411,c(Q4220917))
action filter_type
action find
entity Q1356226
relation P1411
type Q4220917
['Q1356226', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?h WHERE { resource:Q1356226 property:P1411 ?h . ?h rdf:type ontology:Q4220917 }
Ernest Laszlo
action filter_type
action find
entity Ernest Laszlo
relation nominated for
type film award
['Ernest Laszlo', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?h WHERE { resource:Ernest_Laszlo property:nominated_for ?h . ?h rdf:type ontology:film_award }
[]
film award
Q21995136 Q131520 Q21995139
SYSTEM
Academy Award for Best Cinematography, Color, Academy Award for Best Cinematography, Academy Award for Best Cinematography, Black-and-White
Q21995136 Q131520 Q21995139
(Q1356226,P1411,c(Q4220917))
action filter_type
action find
entity Q1356226
relation P1411
type Q4220917
[ANSWERS]
['Q1356226', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?h WHERE { resource:Q1356226 property:P1411 ?h . ?h rdf:type ontology:Q4220917 }
Academy Award for Best Cinematography, Color Academy Award for Best Cinematography Academy Award for Best Cinematography, Black-and-White
Ernest Laszlo were nominated for Academy Award for Best Cinematography, Color, Academy Award for Best Cinematography and Academy Award for Best Cinematography, Black-and-White
Academy Award for Best Cinematography, Color Academy Award for Best Cinematography Academy Award for Best Cinematography, Black-and-White
action filter_type
action find
entity Ernest Laszlo
relation nominated for
type film award
['Ernest Laszlo', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?h WHERE { resource:Ernest_Laszlo property:nominated_for ?h . ?h rdf:type ontology:film_award }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q21995136 Q131520 Q21995139
P166
Q502895
USER
Which people were honoured with Academy Award for Best Cinematography, Color, Academy Award for Best Cinematography and Academy Award for Best Cinematography, Black-and-White ?
(c(Q502895),P166,Q21995136) (c(Q502895),P166,Q131520) (c(Q502895),P166,Q21995139)
action union
action filter_type
action find_reverse
entity Q21995136
relation P166
type Q502895
action filter_type
action find_reverse
entity Q131520
relation P166
type Q502895
action filter_type
action find_reverse
entity Q21995139
relation P166
type Q502895
[{'concept': 'Q502895'}, 'P166', 'Q21995136'] [{'concept': 'Q502895'}, 'P166', 'Q131520'] [{'concept': 'Q502895'}, 'P166', 'Q21995139']
SELECT DISTINCT ?q WHERE { VALUES ( ?a ) { ( resource:Q21995136 ) ( resource:Q131520 ) } . ?q property:P166 ?a }
Academy Award for Best Cinematography, Color Academy Award for Best Cinematography Academy Award for Best Cinematography, Black-and-White
action union
action filter_type
action find_reverse
entity Academy Award for Best Cinematography, Color
relation award received
type common name
action filter_type
action find_reverse
entity Academy Award for Best Cinematography
relation award received
type common name
action filter_type
action find_reverse
entity Academy Award for Best Cinematography, Black-and-White
relation award received
type common name
[{'concept': 'common name'}, 'award received', 'Academy Award for Best Cinematography, Color'] [{'concept': 'common name'}, 'award received', 'Academy Award for Best Cinematography'] [{'concept': 'common name'}, 'award received', 'Academy Award for Best Cinematography, Black-and-White']
SELECT DISTINCT ?q WHERE { VALUES ( ?a ) { ( resource:Academy_Award_for_Best_Cinematography,_Color ) ( resource:Academy_Award_for_Best_Cinematography ) } . ?q property:award_received ?a }
[]
common name
Q1346696 Q1346696 Q1346696
SYSTEM
Leon Shamroy
Q774270 Q568941 Q965659 Q965659 Q504191 Q607280 Q1827244 Q1699139 Q645627 Q1312577 Q657828 Q2580846 Q505035 Q452471 Q1380910 Q367614 Q367614 Q690973 Q462027 Q1396531 Q1319095 Q373115 Q373115 Q373115 Q436704 Q431611 Q1356489 Q634059 Q178115 Q178115 Q1706396 Q1346696 Q1346696 Q1346696 Q1346696 Q1819039 Q774270 Q750718 Q1708070 Q1348041 Q926054 Q965659 Q1370195 Q573164 Q279100 Q1314113 Q2166046 Q579550 Q1379980 Q363413 Q363413 Q363413 Q963628 Q1077553 Q1077553 Q645627 Q706993 Q706993 Q706993 Q486883 Q724012 Q718606 Q1337082 Q657828 Q62099 Q944140 Q155423 Q505629 Q365230 Q365230 Q1351247 Q497075 Q489951 Q489951 Q704378 Q704378 Q704378 Q721174 Q436584 Q460376 Q717851 Q180029 Q364017 Q364017 Q364017 Q1521771 Q918558 Q505940 Q648611 Q260963 Q2576629 Q1335915 Q585668 Q585668 Q1177096 Q312290 Q312290 Q509671 Q460144 Q1226913 Q123745 Q1375642 Q266521 Q266521 Q2546833 Q607280 Q1379980 Q71424 Q351563 Q464764 Q1337082 Q708870 Q708870 Q708870 Q657828 Q657828 Q166000 Q914315 Q968440 Q362210 Q362210 Q707321 Q213821 Q278759 Q1356226 Q723837 Q178115 Q509671 Q721897 Q1359405
(c(Q502895),P166,Q21995136) (c(Q502895),P166,Q131520) (c(Q502895),P166,Q21995139)
action union
action filter_type
action find_reverse
entity Q21995136
relation P166
type Q502895
action filter_type
action find_reverse
entity Q131520
relation P166
type Q502895
action filter_type
action find_reverse
entity Q21995139
relation P166
type Q502895
[ANSWER], [ANSWER] and [ANSWER] were honoured with Academy Award for Best Cinematography, Color, Academy Award for Best Cinematography and Academy Award for Best Cinematography, Black-and-White
[{'concept': 'Q502895'}, 'P166', 'Q21995136'] [{'concept': 'Q502895'}, 'P166', 'Q131520'] [{'concept': 'Q502895'}, 'P166', 'Q21995139']
SELECT DISTINCT ?q WHERE { VALUES ( ?a ) { ( resource:Q21995136 ) ( resource:Q131520 ) } . ?q property:P166 ?a }
Charles Rosher Loyal Griggs Freddie Young Freddie Young W. Howard Greene Harry Stradling Lionel Lindon John Alton Hal Mohr Russell Metty Joseph Ruttenberg William V. Skall Arthur E. Arling Georges Périnal Ted Moore Ray Rennahan Ray Rennahan Alfred Gilks Daniel L. Fapp Milton R. Krasner Robert Burks Winton Hoch Winton Hoch Winton Hoch Jack Cardiff Ernest Haller Ernest Palmer Archie Stout Robert L. Surtees Robert L. Surtees Joseph A. Valentine Leon Shamroy Leon Shamroy Leon Shamroy Leon Shamroy Leonard Smith Charles Rosher Philippe Rousselot Joseph T. Rucker Pasqualino De Santis Mauro Fiore Freddie Young Lee Garmes Anthony Dod Mantle Robert Elswit Guillermo Navarro Ronnie Taylor Peter Biziou Haskell Wexler Vittorio Storaro Vittorio Storaro Vittorio Storaro Vilmos Zsigmond Chris Menges Chris Menges Hal Mohr Conrad Hall Conrad Hall Conrad Hall Charles Lang Fred Koenekamp Victor Milner Freddie Francis Joseph Ruttenberg Karl Freund Claudio Miranda Néstor Almendros Clyde De Vinna Janusz Kamiński Janusz Kamiński Karl Struss Russell Carpenter Geoffrey Unsworth Geoffrey Unsworth Emmanuel Lubezki Emmanuel Lubezki Emmanuel Lubezki Oswald Morris Jack Hildyard Tony Gaudio Joseph F. Biroc Peter Pau Robert Richardson Robert Richardson Robert Richardson Ghislain Cloquet John Seale Andrew Lesnie Dean Semler Russell Boyd Willard Van der Veer John Alcott John Toll John Toll David Watkin Sven Nykvist Sven Nykvist Burnett Guffey Wally Pfister Dion Beebe Billy Williams Floyd Crosby James Wong Howe James Wong Howe Walter Wottitz Harry Stradling Haskell Wexler Walter Lassally Joseph LaShelle Paul Vogel Freddie Francis Arthur Charles Miller Arthur Charles Miller Arthur Charles Miller Joseph Ruttenberg Joseph Ruttenberg Gregg Toland Jean Bourgoin Sam Leavitt William C. Mellor William C. Mellor Guy Green Eugen Schüfftan Boris Kaufman Ernest Laszlo Robert Krasker Robert L. Surtees Burnett Guffey George Barnes William H. Daniels
Leon Shamroy, Leon Shamroy and Leon Shamroy were honoured with Academy Award for Best Cinematography, Color, Academy Award for Best Cinematography and Academy Award for Best Cinematography, Black-and-White
Leon Shamroy Leon Shamroy Leon Shamroy
action union
action filter_type
action find_reverse
entity Academy Award for Best Cinematography, Color
relation award received
type common name
action filter_type
action find_reverse
entity Academy Award for Best Cinematography
relation award received
type common name
action filter_type
action find_reverse
entity Academy Award for Best Cinematography, Black-and-White
relation award received
type common name
[{'concept': 'common name'}, 'award received', 'Academy Award for Best Cinematography, Color'] [{'concept': 'common name'}, 'award received', 'Academy Award for Best Cinematography'] [{'concept': 'common name'}, 'award received', 'Academy Award for Best Cinematography, Black-and-White']
SELECT DISTINCT ?q WHERE { VALUES ( ?a ) { ( resource:Academy_Award_for_Best_Cinematography,_Color ) ( resource:Academy_Award_for_Best_Cinematography ) } . ?q property:award_received ?a }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1346696
P26
Q502895
USER
Who is the spouse of Leon Shamroy ?
(c(Q502895),P26,Q1346696)
action filter_type
action find
entity Q1346696
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q1346696']
SELECT DISTINCT ?t WHERE { resource:Q1346696 property:P26 ?t . ?t rdf:type ontology:Q502895 }
Leon Shamroy
action filter_type
action find
entity Leon Shamroy
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Leon Shamroy']
SELECT DISTINCT ?t WHERE { resource:Leon_Shamroy property:spouse ?t . ?t rdf:type ontology:common_name }
[]
common name
Q287688
SYSTEM
Mary Anderson
Q287688
(c(Q502895),P26,Q1346696)
action filter_type
action find
entity Q1346696
relation P26
type Q502895
The spouse of Leon Shamroy is Miss [ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q1346696']
SELECT DISTINCT ?t WHERE { resource:Q1346696 property:P26 ?t . ?t rdf:type ontology:Q502895 }
Mary Anderson
The spouse of Leon Shamroy is Miss Mary Anderson
Mary Anderson
action filter_type
action find
entity Leon Shamroy
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Leon Shamroy']
SELECT DISTINCT ?t WHERE { resource:Leon_Shamroy property:spouse ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q287688
P9
Q502895
USER
Who is that one a sister of ?
(c(Q502895),P9,Q287688)
action filter_type
action find_reverse
entity Q287688
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q287688']
SELECT DISTINCT ?h WHERE { ?h property:P9 resource:Q287688 . ?h rdf:type ontology:Q502895 }
Mary Anderson
action filter_type
action find_reverse
entity Mary Anderson
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Mary Anderson']
SELECT DISTINCT ?h WHERE { ?h property:sister resource:Mary_Anderson . ?h rdf:type ontology:common_name }
[]
common name
Q6137080
SYSTEM
James K Anderson
Q6137080
(c(Q502895),P9,Q287688)
action filter_type
action find_reverse
entity Q287688
relation P9
type Q502895
That one a sister of is the [ANSWER]
[{'concept': 'Q502895'}, 'P9', 'Q287688']
SELECT DISTINCT ?h WHERE { ?h property:P9 resource:Q287688 . ?h rdf:type ontology:Q502895 }
James K Anderson
That one a sister of is the James K Anderson
James K Anderson
action filter_type
action find_reverse
entity Mary Anderson
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Mary Anderson']
SELECT DISTINCT ?h WHERE { ?h property:sister resource:Mary_Anderson . ?h rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do min number of people know to play ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?d ) { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?h ) WHERE { ?f property:P1303 ?n . ?f rdf:type ontology:Q502895 . ?n rdf:type ontology:Q34379 } GROUP BY ?n } } . { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?t ) WHERE { ?q property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 } GROUP BY ?g } . FILTER ( ?t = ?d ) }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?d ) { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?h ) WHERE { ?f property:instrument ?n . ?f rdf:type ontology:common_name . ?n rdf:type ontology:musical_instrument } GROUP BY ?n } } . { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?t ) WHERE { ?q property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name } GROUP BY ?g } . FILTER ( ?t = ?d ) }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Min number of people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?d ) { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?h ) WHERE { ?f property:P1303 ?n . ?f rdf:type ontology:Q502895 . ?n rdf:type ontology:Q34379 } GROUP BY ?n } } . { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?t ) WHERE { ?q property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 } GROUP BY ?g } . FILTER ( ?t = ?d ) }
spoon cajón wind instrument
Min number of people know about spoon, cajón and wind instrument
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?d ) { SELECT DISTINCT ?n ( COUNT ( ?f ) AS ?h ) WHERE { ?f property:instrument ?n . ?f rdf:type ontology:common_name . ?n rdf:type ontology:musical_instrument } GROUP BY ?n } } . { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?t ) WHERE { ?q property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name } GROUP BY ?g } . FILTER ( ?t = ?d ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1411
Q4220917 Q838948 Q502895
USER
Which film awards did max number of works of art or people receive ?
(c(Q838948)|c(Q502895),P1411,c(Q4220917))
action argmax
action union
action find_reverse_tuple_counts
relation P1411
type Q4220917
type Q838948
action find_reverse_tuple_counts
relation P1411
type Q4220917
type Q502895
[[{'concept': 'Q838948'}, {'concept': 'Q502895'}], 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?s ) { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?a ) WHERE { { ?z property:P1411 ?q . ?q rdf:type ontology:Q4220917 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P1411 ?q . ?q rdf:type ontology:Q4220917 . ?z rdf:type ontology:Q502895 } } GROUP BY ?q } } . { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?x ) WHERE { VALUES ( ?d ) { ( ontology:Q838948 ) ( ontology:Q502895 ) } . ?u rdf:type ?d } GROUP BY ?e } . FILTER ( ?x = ?s ) }
action argmax
action union
action find_reverse_tuple_counts
relation nominated for
type film award
type work of art
action find_reverse_tuple_counts
relation nominated for
type film award
type common name
[[{'concept': 'work of art'}, {'concept': 'common name'}], 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?s ) { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?a ) WHERE { { ?z property:nominated_for ?q . ?q rdf:type ontology:film_award . ?z rdf:type ontology:work_of_art } UNION { ?z property:nominated_for ?q . ?q rdf:type ontology:film_award . ?z rdf:type ontology:common_name } } GROUP BY ?q } } . { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?x ) WHERE { VALUES ( ?d ) { ( ontology:work_of_art ) ( ontology:common_name ) } . ?u rdf:type ?d } GROUP BY ?e } . FILTER ( ?x = ?s ) }
[]
film award work of art common name
Q830079
SYSTEM
Academy Award for Best Sound Mixing
Q830079
(c(Q838948)|c(Q502895),P1411,c(Q4220917))
action argmax
action union
action find_reverse_tuple_counts
relation P1411
type Q4220917
type Q838948
action find_reverse_tuple_counts
relation P1411
type Q4220917
type Q502895
Max number of works of art or people received an [ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q502895'}], 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?s ) { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?a ) WHERE { { ?z property:P1411 ?q . ?q rdf:type ontology:Q4220917 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P1411 ?q . ?q rdf:type ontology:Q4220917 . ?z rdf:type ontology:Q502895 } } GROUP BY ?q } } . { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?x ) WHERE { VALUES ( ?d ) { ( ontology:Q838948 ) ( ontology:Q502895 ) } . ?u rdf:type ?d } GROUP BY ?e } . FILTER ( ?x = ?s ) }
Academy Award for Best Sound Mixing
Max number of works of art or people received an Academy Award for Best Sound Mixing
Academy Award for Best Sound Mixing
action argmax
action union
action find_reverse_tuple_counts
relation nominated for
type film award
type work of art
action find_reverse_tuple_counts
relation nominated for
type film award
type common name
[[{'concept': 'work of art'}, {'concept': 'common name'}], 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?a ) AS ?s ) { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?a ) WHERE { { ?z property:nominated_for ?q . ?q rdf:type ontology:film_award . ?z rdf:type ontology:work_of_art } UNION { ?z property:nominated_for ?q . ?q rdf:type ontology:film_award . ?z rdf:type ontology:common_name } } GROUP BY ?q } } . { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?x ) WHERE { VALUES ( ?d ) { ( ontology:work_of_art ) ( ontology:common_name ) } . ?u rdf:type ?d } GROUP BY ?e } . FILTER ( ?x = ?s ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q6137080
P161
Q838948 Q201658
USER
How many works of art or film genres stars James K Anderson as actor ?
(c(Q838948),P161,Q6137080) (c(Q201658),P161,Q6137080)
action count
action union
action filter_type
action find_reverse
entity Q6137080
relation P161
type Q838948
action filter_type
action find_reverse
entity Q6137080
relation P161
type Q201658
[{'concept': 'Q838948'}, 'P161', 'Q6137080'] [{'concept': 'Q201658'}, 'P161', 'Q6137080']
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e rdf:type ?h . VALUES ( ?h ) { ( ontology:Q838948 ) ( ontology:Q201658 ) } }
James K Anderson
action count
action union
action filter_type
action find_reverse
entity James K Anderson
relation cast member
type work of art
action filter_type
action find_reverse
entity James K Anderson
relation cast member
type film genre
[{'concept': 'work of art'}, 'cast member', 'James K Anderson'] [{'concept': 'film genre'}, 'cast member', 'James K Anderson']
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e rdf:type ?h . VALUES ( ?h ) { ( ontology:work_of_art ) ( ontology:film_genre ) } }
[]
work of art film genre
SYSTEM
29
Q507588 Q1870585 Q1882322 Q3227339 Q177922 Q1621402 Q2708365 Q2993435 Q2482628 Q1438760 Q1230516 Q942453 Q3230626 Q1767174 Q1132535 Q31971 Q2805273 Q3235245 Q2316133 Q1987654 Q1146315 Q1856846 Q3213501 Q365028 Q3209291 Q939424 Q2759345 Q7717695 Q1060430
(c(Q838948),P161,Q6137080) (c(Q201658),P161,Q6137080)
action count
action union
action filter_type
action find_reverse
entity Q6137080
relation P161
type Q838948
action filter_type
action find_reverse
entity Q6137080
relation P161
type Q201658
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q6137080'] [{'concept': 'Q201658'}, 'P161', 'Q6137080']
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e rdf:type ?h . VALUES ( ?h ) { ( ontology:Q838948 ) ( ontology:Q201658 ) } }
Arrowhead The Star The Great Sinner The Violent Men To Kill a Mockingbird Friendly Persuasion Donovan's Brain The Connection The Freshman Along the Great Divide Dive Bomber The Chase The Rawhide Years The Fireball Little Big Man Reap the Wild Wind At Gunpoint Riot in Cell Block 11 The Blue Veil The Duel at Silver Creek Take the Money and Run The Ballad of Cable Hogue Bride of Vengeance Love and Anger Ruby Gentry Sergeant York The Rack The Big Land Pushover
29
action count
action union
action filter_type
action find_reverse
entity James K Anderson
relation cast member
type work of art
action filter_type
action find_reverse
entity James K Anderson
relation cast member
type film genre
[{'concept': 'work of art'}, 'cast member', 'James K Anderson'] [{'concept': 'film genre'}, 'cast member', 'James K Anderson']
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e rdf:type ?h . VALUES ( ?h ) { ( ontology:work_of_art ) ( ontology:film_genre ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6137080
P19
Q56061
USER
Where was James K Anderson born ?
(Q6137080,P19,c(Q56061))
action filter_type
action find
entity Q6137080
relation P19
type Q56061
['Q6137080', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q6137080 property:P19 ?g . ?g rdf:type ontology:Q56061 }
James K Anderson
action filter_type
action find
entity James K Anderson
relation place of birth
type administrative territorial entity
['James K Anderson', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:James_K_Anderson property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q79433
SYSTEM
Wetumpka
Q79433
(Q6137080,P19,c(Q56061))
action filter_type
action find
entity Q6137080
relation P19
type Q56061
James K Anderson was born in [ANSWER]
['Q6137080', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q6137080 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Wetumpka
James K Anderson was born in Wetumpka
Wetumpka
action filter_type
action find
entity James K Anderson
relation place of birth
type administrative territorial entity
['James K Anderson', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:James_K_Anderson property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2829094
Q56061
USER
And how about Akl Awit?
(Q2829094,P19,c(Q56061))
action filter_type
action find
entity Q2829094
relation P19
type Q56061
['Q2829094', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q2829094 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Akl Awit
action filter_type
action find
entity Akl Awit
relation place of birth
type administrative territorial entity
['Akl Awit', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Akl_Awit property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3820
SYSTEM
Beirut
Q3820
(Q2829094,P19,c(Q56061))
action filter_type
action find
entity Q2829094
relation P19
type Q56061
[ANSWER]
['Q2829094', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q2829094 property:P19 ?g . ?g rdf:type ontology:Q56061 }
Beirut
Beirut
action filter_type
action find
entity Akl Awit
relation place of birth
type administrative territorial entity
['Akl Awit', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Akl_Awit property:place_of_birth ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]