Simple Question (Direct)
Simple Question
Q505403
P102
Q7210356
USER
Which political organizations are Andrew Jackson Faulk a member of ?
(Q505403,P102,c(Q7210356))
action filter_type
action find
entity Q505403
relation P102
type Q7210356
['Q505403', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q505403 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Andrew Jackson Faulk
action filter_type
action find
entity Andrew Jackson Faulk
relation member of political party
type political organization
['Andrew Jackson Faulk', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Andrew_Jackson_Faulk property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
political organization
Q29552 Q29468
SYSTEM
Democratic Party, Republican Party
Q29552 Q29468
(Q505403,P102,c(Q7210356))
action filter_type
action find
entity Q505403
relation P102
type Q7210356
The [ANSWERS] are Andrew Jackson Faulk a member of
['Q505403', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?i WHERE { resource:Q505403 property:P102 ?i . ?i rdf:type ontology:Q7210356 }
Democratic Party Republican Party
The Democratic Party and Republican Party are Andrew Jackson Faulk a member of
Democratic Party Republican Party
action filter_type
action find
entity Andrew Jackson Faulk
relation member of political party
type political organization
['Andrew Jackson Faulk', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?i WHERE { resource:Andrew_Jackson_Faulk property:member_of_political_party ?i . ?i rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29552
P749
Q7210356
USER
Which political organizations are owned by Democratic Party ?
(c(Q7210356),P749,Q29552)
action filter_type
action find_reverse
entity Q29552
relation P749
type Q7210356
[{'concept': 'Q7210356'}, 'P749', 'Q29552']
SELECT DISTINCT ?f WHERE { ?f property:P749 resource:Q29552 . ?f rdf:type ontology:Q7210356 }
Democratic Party
action filter_type
action find_reverse
entity Democratic Party
relation parent organization
type political organization
[{'concept': 'political organization'}, 'parent organization', 'Democratic Party']
SELECT DISTINCT ?f WHERE { ?f property:parent_organization resource:Democratic_Party . ?f rdf:type ontology:political_organization }
[]
political organization
Q7008134 Q5020399
SYSTEM
New Hampshire Democratic Party, California Democratic Party
Q7008134 Q5020399
(c(Q7210356),P749,Q29552)
action filter_type
action find_reverse
entity Q29552
relation P749
type Q7210356
Party [ANSWERS] are owned by Democratic Party
[{'concept': 'Q7210356'}, 'P749', 'Q29552']
SELECT DISTINCT ?f WHERE { ?f property:P749 resource:Q29552 . ?f rdf:type ontology:Q7210356 }
New Hampshire Democratic Party California Democratic Party
Party New Hampshire Democratic Party and California Democratic Party are owned by Democratic Party
New Hampshire Democratic Party California Democratic Party
action filter_type
action find_reverse
entity Democratic Party
relation parent organization
type political organization
[{'concept': 'political organization'}, 'parent organization', 'Democratic Party']
SELECT DISTINCT ?f WHERE { ?f property:parent_organization resource:Democratic_Party . ?f rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q7008134 Q5020399
P102
Q502895
USER
Who are the members of New Hampshire Democratic Party and California Democratic Party ?
(c(Q502895),P102,Q7008134) (c(Q502895),P102,Q5020399)
action union
action filter_type
action find_reverse
entity Q7008134
relation P102
type Q502895
action filter_type
action find_reverse
entity Q5020399
relation P102
type Q502895
[{'concept': 'Q502895'}, 'P102', 'Q7008134'] [{'concept': 'Q502895'}, 'P102', 'Q5020399']
SELECT DISTINCT ?a WHERE { { ?a property:P102 resource:Q5020399 . ?a rdf:type ontology:Q502895 } UNION { ?a property:P102 resource:Q7008134 . ?a rdf:type ontology:Q502895 } }
New Hampshire Democratic Party California Democratic Party
action union
action filter_type
action find_reverse
entity New Hampshire Democratic Party
relation member of political party
type common name
action filter_type
action find_reverse
entity California Democratic Party
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', 'New Hampshire Democratic Party'] [{'concept': 'common name'}, 'member of political party', 'California Democratic Party']
SELECT DISTINCT ?a WHERE { { ?a property:member_of_political_party resource:California_Democratic_Party . ?a rdf:type ontology:common_name } UNION { ?a property:member_of_political_party resource:New_Hampshire_Democratic_Party . ?a rdf:type ontology:common_name } }
[]
common name
Q2092070 Q6668412 Q6767311
SYSTEM
Albert Dekker, Lois Wolk, Mark DeSaulnier
Q1700376 Q1685954 Q1966707 Q5076040 Q6261133 Q5723700 Q6777376 Q7144115 Q19878077 Q6668412 Q5364795 Q4885873 Q4704495 Q7339983 Q4898279 Q8022696 Q5334646 Q5981090 Q5726873 Q5053049 Q7296147 Q5226471 Q23008524 Q7647593 Q13562255 Q5441978 Q6769874 Q3000097 Q7182484 Q4942388 Q4685737 Q5092702 Q4773347 Q6779741 Q6397046 Q5186348 Q5478183 Q7498880 Q7328265 Q3343727 Q6279566 Q6078402 Q6828172 Q6767311 Q6846701 Q6755698 Q2092070 Q6195076 Q6279480 Q7358328 Q6200205 Q5106899 Q5232352 Q6962991 Q6387474
(c(Q502895),P102,Q7008134) (c(Q502895),P102,Q5020399)
action union
action filter_type
action find_reverse
entity Q7008134
relation P102
type Q502895
action filter_type
action find_reverse
entity Q5020399
relation P102
type Q502895
The members of New Hampshire Democratic Party and California Democratic are [ANSWERS]
[{'concept': 'Q502895'}, 'P102', 'Q7008134'] [{'concept': 'Q502895'}, 'P102', 'Q5020399']
SELECT DISTINCT ?a WHERE { { ?a property:P102 resource:Q5020399 . ?a rdf:type ontology:Q502895 } UNION { ?a property:P102 resource:Q7008134 . ?a rdf:type ontology:Q502895 } }
John Hardy Steele Samuel Dinsmoor, Jr. Nathaniel B. Baker Charles Calderon John Tran Henry J. Mello Marty Block Pat Wiggins Basim Elkarra Lois Wolk Ellen Corbett Ben Hueso Al Muratsuchi Rob Bonta Betsy Butler Wilmer Carter Ed Chau Ian Calderon Henry Perea Cathleen Galgiani Raul Bocanegra Das Williams Teresa Patterson Hughes Susan Bonilla Holly Mitchell Felipe Fuentes Mark Stone Adam Gray Phil Ting Bonnie Lowenthal Adrin Nazarian Cheryl Brown Anthony Rendon Mary Hayashi Kevin Mullin Cristina Garcia Fran Pavley Shirley Weber Richard Pan Norma Torres Jose Solorio Isadore Hall, III Michael Allen Mark DeSaulnier Mike Eng Marc Levine Albert Dekker Jim Frazier Jose Medina Roger Hernández Jimmy Gomez Chris Holden David Chiu Nancy Skinner Ken Cooley
The members of New Hampshire Democratic Party and California Democratic are Albert Dekker, Lois Wolk and Mark DeSaulnier
Albert Dekker Lois Wolk Mark DeSaulnier
action union
action filter_type
action find_reverse
entity New Hampshire Democratic Party
relation member of political party
type common name
action filter_type
action find_reverse
entity California Democratic Party
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', 'New Hampshire Democratic Party'] [{'concept': 'common name'}, 'member of political party', 'California Democratic Party']
SELECT DISTINCT ?a WHERE { { ?a property:member_of_political_party resource:California_Democratic_Party . ?a rdf:type ontology:common_name } UNION { ?a property:member_of_political_party resource:New_Hampshire_Democratic_Party . ?a rdf:type ontology:common_name } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7008134
P361
Q7210356
USER
What is that one a part of ?
(Q7008134,P361,c(Q7210356))
action filter_type
action find
entity Q7008134
relation P361
type Q7210356
['Q7008134', 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ?c WHERE { resource:Q7008134 property:P361 ?c . ?c rdf:type ontology:Q7210356 }
New Hampshire Democratic Party
action filter_type
action find
entity New Hampshire Democratic Party
relation part of
type political organization
['New Hampshire Democratic Party', 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ?c WHERE { resource:New_Hampshire_Democratic_Party property:part_of ?c . ?c rdf:type ontology:political_organization }
[]
political organization
Clarification for simple ques.
Q7008134
SYSTEM
Did you mean New Hampshire Democratic Party ?
Q2092070 Q6668412 Q6767311
(Q2092070,P361,c(Q7210356)) (Q6668412,P361,c(Q7210356)) (Q6767311,P361,c(Q7210356))
[ANSWER]
['Q2092070', 'P361', {'concept': 'Q7210356'}] ['Q6668412', 'P361', {'concept': 'Q7210356'}] ['Q6767311', 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ?c WHERE { resource:Q7008134 property:P361 ?c . ?c rdf:type ontology:Q7210356 }
Albert Dekker Lois Wolk Mark DeSaulnier
Did you mean New Hampshire Democratic Party ?
New Hampshire Democratic Party
['Albert Dekker', 'part of', {'concept': 'political organization'}] ['Lois Wolk', 'part of', {'concept': 'political organization'}] ['Mark DeSaulnier', 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ?c WHERE { resource:New_Hampshire_Democratic_Party property:part_of ?c . ?c rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
USER
Yes
(Q7008134,P361,c(Q7210356))
['Q7008134', 'P361', {'concept': 'Q7210356'}]
['New Hampshire Democratic Party', 'part of', {'concept': 'political organization'}]
[]
Q29552
SYSTEM
Democratic Party
Q29552
(Q7008134,P361,c(Q7210356))
action filter_type
action find
entity Q7008134
relation P361
type Q7210356
That one a part of is the [ANSWER]
['Q7008134', 'P361', {'concept': 'Q7210356'}]
SELECT DISTINCT ?c WHERE { resource:Q7008134 property:P361 ?c . ?c rdf:type ontology:Q7210356 }
Democratic Party
That one a part of is the Democratic Party
Democratic Party
action filter_type
action find
entity New Hampshire Democratic Party
relation part of
type political organization
['New Hampshire Democratic Party', 'part of', {'concept': 'political organization'}]
SELECT DISTINCT ?c WHERE { resource:New_Hampshire_Democratic_Party property:part_of ?c . ?c rdf:type ontology:political_organization }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q29552 Q16634076 Q11817
P112
Q502895
USER
Was that political organization established by Dragan Klaić and Andrew Jackson ?
(Q29552,P112,Q16634076) (Q29552,P112,Q11817)
action is_in
entity Q29552
action intersection
action find_reverse
entity Q16634076
relation P112
action find_reverse
entity Q11817
relation P112
['Q29552', 'P112', 'Q16634076'] ['Q29552', 'P112', 'Q11817']
ASK WHERE { resource:Q29552 property:P112 resource:Q11817 . resource:Q29552 property:P112 resource:Q16634076 }
Democratic Party Dragan Klaić Andrew Jackson
action is_in
entity Democratic Party
action intersection
action find_reverse
entity Dragan Klaić
relation founder
action find_reverse
entity Andrew Jackson
relation founder
['Democratic Party', 'founder', 'Dragan Klaić'] ['Democratic Party', 'founder', 'Andrew Jackson']
ASK WHERE { resource:Democratic_Party property:founder resource:Andrew_Jackson . resource:Democratic_Party property:founder resource:Dragan_Klaić }
[]
common name
SYSTEM
NO and YES respectively
(Q29552,P112,Q16634076) (Q29552,P112,Q11817)
action is_in
entity Q29552
action intersection
action find_reverse
entity Q16634076
relation P112
action find_reverse
entity Q11817
relation P112
[ANSWER]
['Q29552', 'P112', 'Q16634076'] ['Q29552', 'P112', 'Q11817']
ASK WHERE { resource:Q29552 property:P112 resource:Q11817 . resource:Q29552 property:P112 resource:Q16634076 }
NO and YES respectively
action is_in
entity Democratic Party
action intersection
action find_reverse
entity Dragan Klaić
relation founder
action find_reverse
entity Andrew Jackson
relation founder
['Democratic Party', 'founder', 'Dragan Klaić'] ['Democratic Party', 'founder', 'Andrew Jackson']
ASK WHERE { resource:Democratic_Party property:founder resource:Andrew_Jackson . resource:Democratic_Party property:founder resource:Dragan_Klaić }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3082553 Q11817
P161
Q838948
USER
Which works of art stars Andrew Jackson or Frank Conroy as actor ?
OR((c(Q838948),P161,Q11817), (c(Q838948),P161,Q3082553))
action filter_type
action union
action find_reverse
entity Q11817
relation P161
action find_reverse
entity Q3082553
relation P161
type Q838948
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q11817'], [{'concept': 'Q838948'}, 'P161', 'Q3082553']]}
SELECT DISTINCT ?c WHERE { { { ?c property:P161 resource:Q11817 } UNION { ?c property:P161 resource:Q3082553 } } . ?c rdf:type ontology:Q838948 }
Frank Conroy Andrew Jackson
action filter_type
action union
action find_reverse
entity Andrew Jackson
relation cast member
action find_reverse
entity Frank Conroy
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'Andrew Jackson'], [{'concept': 'work of art'}, 'cast member', 'Frank Conroy']]}
SELECT DISTINCT ?c WHERE { { { ?c property:cast_member resource:Andrew_Jackson } UNION { ?c property:cast_member resource:Frank_Conroy } } . ?c rdf:type ontology:work_of_art }
[]
work of art
Q533902 Q3201871 Q1056225 Q1392828 Q897507 Q1066860 Q1790093 Q2006667 Q3285133 Q1284839
SYSTEM
Some of them are Manhattan Melodrama, Love Is News, The Last Days of Pompeii, Meet Nero Wolfe, Shadow Builder, Charlie Chan in Egypt, The Royal Family of Broadway, Possessed, Wells Fargo, Edison
Q425992 Q904666 Q897507 Q3460360 Q3988126 Q3201871 Q3731068 Q1284839 Q1790093 Q2421627 Q1711295 Q1294711 Q533902 Q1426269 Q2358112 Q3285825 Q3100955 Q1446533 Q1392828 Q2112932 Q1144006 Q1056225 Q3009061 Q2006667 Q3815017 Q1587353 Q1066860 Q1932023 Q246656 Q3285133
OR((c(Q838948),P161,Q11817), (c(Q838948),P161,Q3082553))
action filter_type
action union
action find_reverse
entity Q11817
relation P161
action find_reverse
entity Q3082553
relation P161
type Q838948
[ANSWERS] star Andrew Jackson or Frank Conroy as actor
{'OR': [[{'concept': 'Q838948'}, 'P161', 'Q11817'], [{'concept': 'Q838948'}, 'P161', 'Q3082553']]}
SELECT DISTINCT ?c WHERE { { { ?c property:P161 resource:Q11817 } UNION { ?c property:P161 resource:Q3082553 } } . ?c rdf:type ontology:Q838948 }
The Day the Earth Stood Still I Live My Life Shadow Builder This Is My Affair The Loves of Edgar Allan Poe Love Is News All My Sons Edison The Royal Family of Broadway The Little Minister Seed The Gorgeous Hussy Manhattan Melodrama The Ox-Bow Incident The Call of the Wild Manhattan Parade Lady of Burlesque The Young Philadelphians Meet Nero Wolfe Night Flight The White Parade The Last Days of Pompeii The Last Gangster Possessed Charlie Chan at the Opera The Naked City Charlie Chan in Egypt Midnight Mary Grand Hotel Wells Fargo
Manhattan Melodrama, Love Is News, The Last Days of Pompeii, Meet Nero Wolfe, Shadow Builder, Charlie Chan in Egypt, The Royal Family of Broadway, Possessed, Wells Fargo and Edison star Andrew Jackson or Frank Conroy as actor
Manhattan Melodrama Love Is News The Last Days of Pompeii Meet Nero Wolfe Shadow Builder Charlie Chan in Egypt The Royal Family of Broadway Possessed Wells Fargo Edison
action filter_type
action union
action find_reverse
entity Andrew Jackson
relation cast member
action find_reverse
entity Frank Conroy
relation cast member
type work of art
{'OR': [[{'concept': 'work of art'}, 'cast member', 'Andrew Jackson'], [{'concept': 'work of art'}, 'cast member', 'Frank Conroy']]}
SELECT DISTINCT ?c WHERE { { { ?c property:cast_member resource:Andrew_Jackson } UNION { ?c property:cast_member resource:Frank_Conroy } } . ?c rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q24904693 Q1392828
P161
Q502895
USER
Which people starred in Meet Nero Wolfe or Five Little Peppers and How They Grew ?
OR((Q1392828,P161,c(Q502895)), (Q24904693,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1392828
relation P161
action find
entity Q24904693
relation P161
type Q502895
{'OR': [['Q1392828', 'P161', {'concept': 'Q502895'}], ['Q24904693', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?e ) { ( resource:Q24904693 ) ( resource:Q1392828 ) } . ?e property:P161 ?z } . ?z rdf:type ontology:Q502895 }
Five Little Peppers and How They Grew Meet Nero Wolfe
action filter_type
action union
action find
entity Meet Nero Wolfe
relation cast member
action find
entity Five Little Peppers and How They Grew
relation cast member
type common name
{'OR': [['Meet Nero Wolfe', 'cast member', {'concept': 'common name'}], ['Five Little Peppers and How They Grew', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?e ) { ( resource:Five_Little_Peppers_and_How_They_Grew ) ( resource:Meet_Nero_Wolfe ) } . ?e property:cast_member ?z } . ?z rdf:type ontology:common_name }
[]
common name
Q1440139 Q1284974 Q1364339 Q3280243 Q2231802 Q42745 Q1367933 Q522803 Q3335514 Q3082553
SYSTEM
Some of them are Joan Perry, Edith Fellows, John Qualen, Walter Kingsford, Juan Torena, Rita Hayworth, Victor Jory, Edward Arnold, Nana Bryant, Frank Conroy
Q259365 Q3280243 Q42745 Q3082553 Q2231802 Q1364339 Q589753 Q1440139 Q1284974 Q1367933 Q522803 Q3335514
OR((Q1392828,P161,c(Q502895)), (Q24904693,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1392828
relation P161
action find
entity Q24904693
relation P161
type Q502895
[ANSWERS] starred in Meet Nero Wolfe or Five Little Peppers and How They Grew
{'OR': [['Q1392828', 'P161', {'concept': 'Q502895'}], ['Q24904693', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?e ) { ( resource:Q24904693 ) ( resource:Q1392828 ) } . ?e property:P161 ?z } . ?z rdf:type ontology:Q502895 }
Gene Morgan Walter Kingsford Rita Hayworth Frank Conroy Juan Torena John Qualen Lionel Stander Joan Perry Edith Fellows Victor Jory Edward Arnold Nana Bryant
Joan Perry, Edith Fellows, John Qualen, Walter Kingsford, Juan Torena, Rita Hayworth, Victor Jory, Edward Arnold, Nana Bryant and Frank Conroy starred in Meet Nero Wolfe or Five Little Peppers and How They Grew
Joan Perry Edith Fellows John Qualen Walter Kingsford Juan Torena Rita Hayworth Victor Jory Edward Arnold Nana Bryant Frank Conroy
action filter_type
action union
action find
entity Meet Nero Wolfe
relation cast member
action find
entity Five Little Peppers and How They Grew
relation cast member
type common name
{'OR': [['Meet Nero Wolfe', 'cast member', {'concept': 'common name'}], ['Five Little Peppers and How They Grew', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?z WHERE { { VALUES ( ?e ) { ( resource:Five_Little_Peppers_and_How_They_Grew ) ( resource:Meet_Nero_Wolfe ) } . ?e property:cast_member ?z } . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q838948 Q7725634 Q482994
USER
How many works of art are exactly 1 literary works and albums a portion of ?
(c(Q7725634)|c(Q482994),P361,c(Q838948))
action count
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q7725634
action find_reverse_tuple_counts
relation P361
type Q838948
type Q482994
value 1
[[{'concept': 'Q7725634'}, {'concept': 'Q482994'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?t WHERE { VALUES ( ?k ) { ( ontology:Q7725634 ) ( ontology:Q482994 ) } . ?y rdf:type ?k } GROUP BY ?t } . FILTER ( ?b = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation part of
type work of art
type literary work
action find_reverse_tuple_counts
relation part of
type work of art
type album
value 1
[[{'concept': 'literary work'}, {'concept': 'album'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?t WHERE { VALUES ( ?k ) { ( ontology:literary_work ) ( ontology:album ) } . ?y rdf:type ?k } GROUP BY ?t } . FILTER ( ?b = 1 ) }
[]
work of art literary work album
SYSTEM
21
Q4143086 Q127367 Q10371896 Q284184 Q733065 Q747847 Q161687 Q1534737 Q205028 Q332368 Q478748 Q945138 Q103569 Q976149 Q971109 Q632753 Q463313 Q232009 Q309153 Q1125687 Q1230318
(c(Q7725634)|c(Q482994),P361,c(Q838948))
action count
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q7725634
action find_reverse_tuple_counts
relation P361
type Q838948
type Q482994
value 1
[ANSWER]
[[{'concept': 'Q7725634'}, {'concept': 'Q482994'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?t WHERE { VALUES ( ?k ) { ( ontology:Q7725634 ) ( ontology:Q482994 ) } . ?y rdf:type ?k } GROUP BY ?t } . FILTER ( ?b = 1 ) }
Ride The Lord of the Rings: The Fellowship of the Ring Sing, Baby, Sing Ra.One Dabangg New Orleans Harry Potter and the Half-Blood Prince Life Iron Man 2 A View to a Kill The Holiday Bedknobs and Broomsticks Alien Laura Inferno Babes in Arms Romeo + Juliet Harry Potter and the Deathly Hallows – Part 2 Singin' in the Rain Teheran 43 Carefree
21
action count
action equal
action union
action find_reverse_tuple_counts
relation part of
type work of art
type literary work
action find_reverse_tuple_counts
relation part of
type work of art
type album
value 1
[[{'concept': 'literary work'}, {'concept': 'album'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?t WHERE { VALUES ( ?k ) { ( ontology:literary_work ) ( ontology:album ) } . ?y rdf:type ?k } GROUP BY ?t } . FILTER ( ?b = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P941
Q502895 Q2198855 Q838948
USER
How many people were exactly 1 cultural movements or works of art inspired by ?
(c(Q2198855)|c(Q838948),P941,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q2198855
action find_reverse_tuple_counts
relation P941
type Q502895
type Q838948
value 1
[[{'concept': 'Q2198855'}, {'concept': 'Q838948'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) ?v WHERE { { ?x property:P941 ?v . ?v rdf:type ontology:Q502895 . ?x rdf:type ontology:Q838948 } UNION { ?x property:P941 ?v . ?v rdf:type ontology:Q502895 . ?x rdf:type ontology:Q2198855 } } GROUP BY ?v } . FILTER ( ?e = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type cultural movement
action find_reverse_tuple_counts
relation inspired by
type common name
type work of art
value 1
[[{'concept': 'cultural movement'}, {'concept': 'work of art'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) ?v WHERE { { ?x property:inspired_by ?v . ?v rdf:type ontology:common_name . ?x rdf:type ontology:work_of_art } UNION { ?x property:inspired_by ?v . ?v rdf:type ontology:common_name . ?x rdf:type ontology:cultural_movement } } GROUP BY ?v } . FILTER ( ?e = 1 ) }
[]
common name cultural movement work of art
SYSTEM
9
Q334001 Q531161 Q154545 Q5534471 Q357951 Q483512 Q229432 Q192222 Q3385369
(c(Q2198855)|c(Q838948),P941,c(Q502895))
action count
action equal
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q2198855
action find_reverse_tuple_counts
relation P941
type Q502895
type Q838948
value 1
[ANSWER]
[[{'concept': 'Q2198855'}, {'concept': 'Q838948'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) ?v WHERE { { ?x property:P941 ?v . ?v rdf:type ontology:Q502895 . ?x rdf:type ontology:Q838948 } UNION { ?x property:P941 ?v . ?v rdf:type ontology:Q502895 . ?x rdf:type ontology:Q2198855 } } GROUP BY ?v } . FILTER ( ?e = 1 ) }
Thomas Cole Elizabeth Kenny Léopold Sédar Senghor Geoffrey Bowers Mehran Karimi Nasseri Isadora Duncan Lucretia Lysippos Pierre Guillaume
9
action count
action equal
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type cultural movement
action find_reverse_tuple_counts
relation inspired by
type common name
type work of art
value 1
[[{'concept': 'cultural movement'}, {'concept': 'work of art'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?e ) ?v WHERE { { ?x property:inspired_by ?v . ?v rdf:type ontology:common_name . ?x rdf:type ontology:work_of_art } UNION { ?x property:inspired_by ?v . ?v rdf:type ontology:common_name . ?x rdf:type ontology:cultural_movement } } GROUP BY ?v } . FILTER ( ?e = 1 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q533902
P136
Q1792379
USER
What can be considered as category for Manhattan Melodrama ?
(Q533902,P136,c(Q1792379))
action filter_type
action find
entity Q533902
relation P136
type Q1792379
['Q533902', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?f WHERE { resource:Q533902 property:P136 ?f . ?f rdf:type ontology:Q1792379 }
Manhattan Melodrama
action filter_type
action find
entity Manhattan Melodrama
relation genre
type art genre
['Manhattan Melodrama', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?f WHERE { resource:Manhattan_Melodrama property:genre ?f . ?f rdf:type ontology:art_genre }
[]
art genre
Q959790 Q130232
SYSTEM
crime film, drama film
Q959790 Q130232
(Q533902,P136,c(Q1792379))
action filter_type
action find
entity Q533902
relation P136
type Q1792379
[ANSWERS] can be considered as category for Manhattan Melodrama
['Q533902', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?f WHERE { resource:Q533902 property:P136 ?f . ?f rdf:type ontology:Q1792379 }
crime film drama film
Crime film and drama film can be considered as category for Manhattan Melodrama
crime film drama film
action filter_type
action find
entity Manhattan Melodrama
relation genre
type art genre
['Manhattan Melodrama', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?f WHERE { resource:Manhattan_Melodrama property:genre ?f . ?f rdf:type ontology:art_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q533902
P364
Q34770
USER
Which language was used originally for the creation of Manhattan Melodrama ?
(Q533902,P364,c(Q34770))
action filter_type
action find
entity Q533902
relation P364
type Q34770
['Q533902', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { resource:Q533902 property:P364 ?f . ?f rdf:type ontology:Q34770 }
Manhattan Melodrama
action filter_type
action find
entity Manhattan Melodrama
relation original language of work
type language
['Manhattan Melodrama', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { resource:Manhattan_Melodrama property:original_language_of_work ?f . ?f rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q533902,P364,c(Q34770))
action filter_type
action find
entity Q533902
relation P364
type Q34770
[ANSWER] was used originally for the creation of Manhattan Melodrama
['Q533902', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { resource:Q533902 property:P364 ?f . ?f rdf:type ontology:Q34770 }
English
English was used originally for the creation of Manhattan Melodrama
English
action filter_type
action find
entity Manhattan Melodrama
relation original language of work
type language
['Manhattan Melodrama', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { resource:Manhattan_Melodrama property:original_language_of_work ?f . ?f rdf:type ontology:language }
[]