Simple Question (Direct)
Simple Question
Q3794776
P57
Q502895
USER
Which person served as the directed of The Case of the Black Cat ?
(Q3794776,P57,c(Q502895))
action filter_type
action find
entity Q3794776
relation P57
type Q502895
['Q3794776', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q3794776 property:P57 ?g }
The Case of the Black Cat
action filter_type
action find
entity The Case of the Black Cat
relation director
type common name
['The Case of the Black Cat', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:The_Case_of_the_Black_Cat property:director ?g }
[]
common name
Q3568474
SYSTEM
William C. McGann
Q3568474
(Q3794776,P57,c(Q502895))
action filter_type
action find
entity Q3794776
relation P57
type Q502895
The [ANSWER] served as the directed of The Case of the Black Cat
['Q3794776', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . resource:Q3794776 property:P57 ?g }
William C. McGann
The William C. McGann served as the directed of The Case of the Black Cat
William C. McGann
action filter_type
action find
entity The Case of the Black Cat
relation director
type common name
['The Case of the Black Cat', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . resource:The_Case_of_the_Black_Cat property:director ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3568474
P344
Q201658
USER
Which film genres have that person as the director of photography ?
(c(Q201658),P344,Q3568474)
action filter_type
action find_reverse
entity Q3568474
relation P344
type Q201658
[{'concept': 'Q201658'}, 'P344', 'Q3568474']
SELECT DISTINCT ?c WHERE { ?c property:P344 resource:Q3568474 . ?c rdf:type ontology:Q201658 }
William C. McGann
action filter_type
action find_reverse
entity William C. McGann
relation director of photography
type film genre
[{'concept': 'film genre'}, 'director of photography', 'William C. McGann']
SELECT DISTINCT ?c WHERE { ?c property:director_of_photography resource:William_C._McGann . ?c rdf:type ontology:film_genre }
[]
film genre
Q1713338 Q1170907 Q1257198
SYSTEM
The Wedding March, The Mark of Zorro, Three Ages
Q2024236 Q1170907 Q1257198 Q5534710 Q1713338
(c(Q201658),P344,Q3568474)
action filter_type
action find_reverse
entity Q3568474
relation P344
type Q201658
[ANSWERS] have that person as the director of photography
[{'concept': 'Q201658'}, 'P344', 'Q3568474']
SELECT DISTINCT ?c WHERE { ?c property:P344 resource:Q3568474 . ?c rdf:type ontology:Q201658 }
The Nut The Mark of Zorro Three Ages When the Clouds Roll By The Wedding March
The Wedding March, The Mark of Zorro and Three Ages have that person as the director of photography
The Wedding March The Mark of Zorro Three Ages
action filter_type
action find_reverse
entity William C. McGann
relation director of photography
type film genre
[{'concept': 'film genre'}, 'director of photography', 'William C. McGann']
SELECT DISTINCT ?c WHERE { ?c property:director_of_photography resource:William_C._McGann . ?c rdf:type ontology:film_genre }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1257198
P462
Q1075
USER
Which color is that film genre associated with ?
(Q1257198,P462,c(Q1075))
action filter_type
action find
entity Q1257198
relation P462
type Q1075
['Q1257198', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?i WHERE { resource:Q1257198 property:P462 ?i . ?i rdf:type ontology:Q1075 }
Three Ages
action filter_type
action find
entity Three Ages
relation color
type color
['Three Ages', 'color', {'concept': 'color'}]
SELECT DISTINCT ?i WHERE { resource:Three_Ages property:color ?i . ?i rdf:type ontology:color }
[]
color
Clarification for simple ques.
Q1257198
SYSTEM
Did you mean Three Ages ?
Q1713338 Q1170907 Q1257198
(Q1713338,P462,c(Q1075)) (Q1170907,P462,c(Q1075)) (Q1257198,P462,c(Q1075))
[ANSWER]
['Q1713338', 'P462', {'concept': 'Q1075'}] ['Q1170907', 'P462', {'concept': 'Q1075'}] ['Q1257198', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?i WHERE { resource:Q1257198 property:P462 ?i . ?i rdf:type ontology:Q1075 }
The Wedding March The Mark of Zorro Three Ages
Did you mean Three Ages ?
Three Ages
['The Wedding March', 'color', {'concept': 'color'}] ['The Mark of Zorro', 'color', {'concept': 'color'}] ['Three Ages', 'color', {'concept': 'color'}]
SELECT DISTINCT ?i WHERE { resource:Three_Ages property:color ?i . ?i rdf:type ontology:color }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1257198,P462,c(Q1075))
['Q1257198', 'P462', {'concept': 'Q1075'}]
['Three Ages', 'color', {'concept': 'color'}]
[]
Q2254548
SYSTEM
black-and-white film
Q2254548
(Q1257198,P462,c(Q1075))
action filter_type
action find
entity Q1257198
relation P462
type Q1075
That film genre is associated with [ANSWER]
['Q1257198', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?i WHERE { resource:Q1257198 property:P462 ?i . ?i rdf:type ontology:Q1075 }
black-and-white film
That film genre is associated with black-and-white film
black-and-white film
action filter_type
action find
entity Three Ages
relation color
type color
['Three Ages', 'color', {'concept': 'color'}]
SELECT DISTINCT ?i WHERE { resource:Three_Ages property:color ?i . ?i rdf:type ontology:color }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q7757058
P144
Q277759 Q502895 Q201658
USER
How many film genres are adapted from greater number of book series or people than The Picture of Dorian Gray ?
(c(Q201658),P144,c(Q277759)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P144
type Q201658
type Q277759
action find_tuple_counts
relation P144
type Q201658
type Q502895
action count
action filter_multi_types
action find
entity Q7757058
relation P144
type Q277759
type Q502895
[{'concept': 'Q201658'}, 'P144', [{'concept': 'Q277759'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?x ) WHERE { ?a rdf:type ?s . VALUES ( ?s ) { ( ontology:Q277759 ) ( ontology:Q502895 ) } } GROUP BY ?j } . FILTER ( ?x > ?v ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { resource:Q7757058 property:P144 ?o . { { ?o rdf:type ontology:Q277759 } UNION { ?o rdf:type ontology:Q502895 } } } } }
The Picture of Dorian Gray
action count
action greater
action union
action find_tuple_counts
relation based on
type film genre
type book series
action find_tuple_counts
relation based on
type film genre
type common name
action count
action filter_multi_types
action find
entity The Picture of Dorian Gray
relation based on
type book series
type common name
[{'concept': 'film genre'}, 'based on', [{'concept': 'book series'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?x ) WHERE { ?a rdf:type ?s . VALUES ( ?s ) { ( ontology:book_series ) ( ontology:common_name ) } } GROUP BY ?j } . FILTER ( ?x > ?v ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { resource:The_Picture_of_Dorian_Gray property:based_on ?o . { { ?o rdf:type ontology:book_series } UNION { ?o rdf:type ontology:common_name } } } } }
[]
book series common name film genre
SYSTEM
65
Q613547 Q5373626 Q7515270 Q6962242 Q7761427 Q4925250 Q5763506 Q7776668 Q3523392 Q2594316 Q2336169 Q7987089 Q7091638 Q4659285 Q2058512 Q4788487 Q2426434 Q4655512 Q3989361 Q7767432 Q14544900 Q7993637 Q7247601 Q657846 Q7764194 Q3637479 Q7738008 Q7718807 Q7712405 Q6012411 Q7897436 Q2349825 Q1540341 Q3645236 Q4023786 Q7752407 Q5917986 Q7751545 Q1547717 Q7643838 Q6304664 Q3990138 Q7741710 Q3602377 Q1214459 Q3209123 Q1997208 Q700736 Q7719923 Q4930192 Q5772192 Q7502658 Q5519668 Q4919377 Q5242930 Q3849843 Q7501303 Q3987868 Q850159 Q5166839 Q7679979 Q2611205 Q8057926 Q7728410 Q4795621
(c(Q201658),P144,c(Q277759)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P144
type Q201658
type Q277759
action find_tuple_counts
relation P144
type Q201658
type Q502895
action count
action filter_multi_types
action find
entity Q7757058
relation P144
type Q277759
type Q502895
[ANSWER]
[{'concept': 'Q201658'}, 'P144', [{'concept': 'Q277759'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?x ) WHERE { ?a rdf:type ?s . VALUES ( ?s ) { ( ontology:Q277759 ) ( ontology:Q502895 ) } } GROUP BY ?j } . FILTER ( ?x > ?v ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { resource:Q7757058 property:P144 ?o . { { ?o rdf:type ontology:Q277759 } UNION { ?o rdf:type ontology:Q502895 } } } } }
Her Gilded Cage Emmy of Stork's Nest Silks and Saddles Nan of Music Mountain The Romantic Story of Margaret Catchpole Blarney Hills of Hate The Yellow Passport The Winning of Barbara Worth Janice Meredith The Cat and the Canary West of the Water Tower On with the Dance A Rough Passage The Small One Are You a Mason? The Wind A Blind Bargain The Snob The Sunny South or The Whirlwind of Fate The Girl with Nine Wigs While the Billy Boils Prodigal Daughters Sally, Irene and Mary The Silence of Dean Maitland Behind the Door The Greater Glory The Blue Mountains Mystery The Adorable Outcast In the Last Stride Unseeing Eyes The Smurfs: A Christmas Carol Across to Singapore Broken Barriers Zander the Great The Moth of Moonbi How McDougall Topped the Score The Mine with the Iron Door The Plastic Age Superman Classic Judy of Rogue's Harbor The Young Rajah The Incorrigible Dukane A Certain Young Man Glorious Betsy All the Brothers Were Valiant Brown of Harvard Pandora's Box The Breaking of the Drought Bluebeard's 8th Wife His Supreme Moment Should Girls Kiss Soldiers? Gambler's Gold Bizarro Classic Day of Independence Married Flirts Shore Leave The Lamb The General Cooee and the Echo Tall Timber The Ace of Hearts Young April The Cup Winner Around the Boree Log
65
action count
action greater
action union
action find_tuple_counts
relation based on
type film genre
type book series
action find_tuple_counts
relation based on
type film genre
type common name
action count
action filter_multi_types
action find
entity The Picture of Dorian Gray
relation based on
type book series
type common name
[{'concept': 'film genre'}, 'based on', [{'concept': 'book series'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?b ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?x ) WHERE { ?a rdf:type ?s . VALUES ( ?s ) { ( ontology:book_series ) ( ontology:common_name ) } } GROUP BY ?j } . FILTER ( ?x > ?v ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { resource:The_Picture_of_Dorian_Gray property:based_on ?o . { { ?o rdf:type ontology:book_series } UNION { ?o rdf:type ontology:common_name } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1970911
P144
Q277759 Q502895 Q201658
USER
And also tell me about The Great Gatsby?
(c(Q201658),P144,c(Q277759)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P144
type Q201658
type Q277759
action find_tuple_counts
relation P144
type Q201658
type Q502895
action count
action filter_multi_types
action find
entity Q1970911
relation P144
type Q277759
type Q502895
[{'concept': 'Q201658'}, 'P144', [{'concept': 'Q277759'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { VALUES ( ?n ) { ( ontology:Q277759 ) ( ontology:Q502895 ) } . ?q rdf:type ?n } . resource:Q1970911 property:P144 ?q } } . FILTER ( ?y > ?m ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) ?u WHERE { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:Q277759 ) ( ontology:Q502895 ) } } GROUP BY ?u } }
The Great Gatsby
action count
action greater
action union
action find_tuple_counts
relation based on
type film genre
type book series
action find_tuple_counts
relation based on
type film genre
type common name
action count
action filter_multi_types
action find
entity The Great Gatsby
relation based on
type book series
type common name
[{'concept': 'film genre'}, 'based on', [{'concept': 'book series'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { VALUES ( ?n ) { ( ontology:book_series ) ( ontology:common_name ) } . ?q rdf:type ?n } . resource:The_Great_Gatsby property:based_on ?q } } . FILTER ( ?y > ?m ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) ?u WHERE { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:book_series ) ( ontology:common_name ) } } GROUP BY ?u } }
[]
book series common name film genre
SYSTEM
65
Q613547 Q5373626 Q7515270 Q6962242 Q7761427 Q4925250 Q5763506 Q7776668 Q3523392 Q2594316 Q2336169 Q7987089 Q7091638 Q4659285 Q2058512 Q4788487 Q2426434 Q4655512 Q3989361 Q7767432 Q14544900 Q7993637 Q7247601 Q657846 Q7764194 Q3637479 Q7738008 Q7718807 Q7712405 Q6012411 Q7897436 Q2349825 Q1540341 Q3645236 Q4023786 Q7752407 Q5917986 Q7751545 Q1547717 Q7643838 Q6304664 Q3990138 Q7741710 Q3602377 Q1214459 Q3209123 Q1997208 Q700736 Q7719923 Q4930192 Q5772192 Q7502658 Q5519668 Q4919377 Q5242930 Q3849843 Q7501303 Q3987868 Q850159 Q5166839 Q7679979 Q2611205 Q8057926 Q7728410 Q4795621
(c(Q201658),P144,c(Q277759)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P144
type Q201658
type Q277759
action find_tuple_counts
relation P144
type Q201658
type Q502895
action count
action filter_multi_types
action find
entity Q1970911
relation P144
type Q277759
type Q502895
[ANSWER]
[{'concept': 'Q201658'}, 'P144', [{'concept': 'Q277759'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { VALUES ( ?n ) { ( ontology:Q277759 ) ( ontology:Q502895 ) } . ?q rdf:type ?n } . resource:Q1970911 property:P144 ?q } } . FILTER ( ?y > ?m ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) ?u WHERE { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:Q277759 ) ( ontology:Q502895 ) } } GROUP BY ?u } }
Her Gilded Cage Emmy of Stork's Nest Silks and Saddles Nan of Music Mountain The Romantic Story of Margaret Catchpole Blarney Hills of Hate The Yellow Passport The Winning of Barbara Worth Janice Meredith The Cat and the Canary West of the Water Tower On with the Dance A Rough Passage The Small One Are You a Mason? The Wind A Blind Bargain The Snob The Sunny South or The Whirlwind of Fate The Girl with Nine Wigs While the Billy Boils Prodigal Daughters Sally, Irene and Mary The Silence of Dean Maitland Behind the Door The Greater Glory The Blue Mountains Mystery The Adorable Outcast In the Last Stride Unseeing Eyes The Smurfs: A Christmas Carol Across to Singapore Broken Barriers Zander the Great The Moth of Moonbi How McDougall Topped the Score The Mine with the Iron Door The Plastic Age Superman Classic Judy of Rogue's Harbor The Young Rajah The Incorrigible Dukane A Certain Young Man Glorious Betsy All the Brothers Were Valiant Brown of Harvard Pandora's Box The Breaking of the Drought Bluebeard's 8th Wife His Supreme Moment Should Girls Kiss Soldiers? Gambler's Gold Bizarro Classic Day of Independence Married Flirts Shore Leave The Lamb The General Cooee and the Echo Tall Timber The Ace of Hearts Young April The Cup Winner Around the Boree Log
65
action count
action greater
action union
action find_tuple_counts
relation based on
type film genre
type book series
action find_tuple_counts
relation based on
type film genre
type common name
action count
action filter_multi_types
action find
entity The Great Gatsby
relation based on
type book series
type common name
[{'concept': 'film genre'}, 'based on', [{'concept': 'book series'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { VALUES ( ?n ) { ( ontology:book_series ) ( ontology:common_name ) } . ?q rdf:type ?n } . resource:The_Great_Gatsby property:based_on ?q } } . FILTER ( ?y > ?m ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) ?u WHERE { ?r rdf:type ?c . VALUES ( ?c ) { ( ontology:book_series ) ( ontology:common_name ) } } GROUP BY ?u } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1713338
P161
Q502895
USER
How many people starred in The Wedding March ?
(Q1713338,P161,c(Q502895))
action count
action filter_type
action find
entity Q1713338
relation P161
type Q502895
['Q1713338', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { resource:Q1713338 property:P161 ?y . ?y rdf:type ontology:Q502895 }
The Wedding March
action count
action filter_type
action find
entity The Wedding March
relation cast member
type common name
['The Wedding March', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { resource:The_Wedding_March property:cast_member ?y . ?y rdf:type ontology:common_name }
[]
common name
SYSTEM
12
Q3142355 Q357552 Q136646 Q266694 Q3483316 Q3101795 Q2831060 Q3300135 Q3012301 Q2112157 Q1056847 Q78508
(Q1713338,P161,c(Q502895))
action count
action filter_type
action find
entity Q1713338
relation P161
type Q502895
[ANSWER]
['Q1713338', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { resource:Q1713338 property:P161 ?y . ?y rdf:type ontology:Q502895 }
Hughie Mack George Fawcett ZaSu Pitts Fay Wray Sidney Bracey George Nichols Albert Conti Maude George Dale Fuller Matthew Betz Cesare Gravina Erich von Stroheim
12
action count
action filter_type
action find
entity The Wedding March
relation cast member
type common name
['The Wedding March', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?a ) WHERE { resource:The_Wedding_March property:cast_member ?y . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1761515
Q502895
USER
And how about Mac and Me?
(Q1761515,P161,c(Q502895))
action count
action filter_type
action find
entity Q1761515
relation P161
type Q502895
['Q1761515', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { resource:Q1761515 property:P161 ?a . ?a rdf:type ontology:Q502895 }
Mac and Me
action count
action filter_type
action find
entity Mac and Me
relation cast member
type common name
['Mac and Me', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { resource:Mac_and_Me property:cast_member ?a . ?a rdf:type ontology:common_name }
[]
common name
SYSTEM
8
(Q1761515,P161,c(Q502895))
action count
action filter_type
action find
entity Q1761515
relation P161
type Q502895
[ANSWER]
['Q1761515', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { resource:Q1761515 property:P161 ?a . ?a rdf:type ontology:Q502895 }
8
action count
action filter_type
action find
entity Mac and Me
relation cast member
type common name
['Mac and Me', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?u ) WHERE { resource:Mac_and_Me property:cast_member ?a . ?a rdf:type ontology:common_name }
[]