Simple Question (Direct)
Simple Question
Q329719
P172
Q2472587
USER
What is the race of Louis Gossett ?
(Q329719,P172,c(Q2472587))
action filter_type
action find
entity Q329719
relation P172
type Q2472587
['Q329719', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q2472587 . resource:Q329719 property:P172 ?j }
Louis Gossett
action filter_type
action find
entity Louis Gossett
relation ethnic group
type people
['Louis Gossett', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:people . resource:Louis_Gossett property:ethnic_group ?j }
[]
people
Q49085
SYSTEM
African Americans
Q49085
(Q329719,P172,c(Q2472587))
action filter_type
action find
entity Q329719
relation P172
type Q2472587
The race of Louis Gossett is of [ANSWER]
['Q329719', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q2472587 . resource:Q329719 property:P172 ?j }
African Americans
The race of Louis Gossett is of African Americans
African Americans
action filter_type
action find
entity Louis Gossett
relation ethnic group
type people
['Louis Gossett', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:people . resource:Louis_Gossett property:ethnic_group ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q329719
P161
Q838948
USER
Which works of art have Louis Gossett as actor ?
(c(Q838948),P161,Q329719)
action filter_type
action find_reverse
entity Q329719
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q329719']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q838948 . ?d property:P161 resource:Q329719 }
Louis Gossett
action filter_type
action find_reverse
entity Louis Gossett
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Louis Gossett']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:work_of_art . ?d property:cast_member resource:Louis_Gossett }
[]
work of art
Q1132575 Q1055906 Q5104788
SYSTEM
An Officer and a Gentleman, The Perfect Game, Travels with My Aunt
Q82519 Q5104788 Q16250926 Q1199649 Q1523923 Q2554338 Q1409792 Q203334 Q7535350 Q1199837 Q1304498 Q1156977 Q2607035 Q2539202 Q2216239 Q39956 Q5288200 Q7746567 Q1132575 Q3794699 Q4956077 Q4656822 Q568162 Q1907536 Q917006 Q3211250 Q3989042 Q1088058 Q177077 Q300423 Q1055906 Q3078078 Q7737421 Q494367 Q1153794 Q39960 Q895856 Q7773323 Q39969
(c(Q838948),P161,Q329719)
action filter_type
action find_reverse
entity Q329719
relation P161
type Q838948
[ANSWERS] have Louis Gossett as actor
[{'concept': 'Q838948'}, 'P161', 'Q329719']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q838948 . ?d property:P161 resource:Q329719 }
The Landlord Travels with My Aunt Gridiron Gang Iron Eagle on the Attack Delgo The White Dawn Firewalker J. D.'s Revenge Skin Game Jaws 3-D A Raisin in the Sun Daddy's Little Girls The Choirboys Finders Keepers It's Good to Be Alive Iron Eagle Dog Jack The Least Among You An Officer and a Gentleman Smitty Bram Stoker's Legend of the Mummy A Fonder Heart Leo the Last The Laughing Policeman Left Behind: World at War Diggstown The River Niger Enemy Mine The Principal A Good Man in Africa The Perfect Game Why Did I Get Married Too? The Grace Card The Deep The Punisher Iron Eagle II Toy Soldiers The Wall That Heals Aces: Iron Eagle III
An Officer and a Gentleman, The Perfect Game and Travels with My Aunt have Louis Gossett as actor
An Officer and a Gentleman The Perfect Game Travels with My Aunt
action filter_type
action find_reverse
entity Louis Gossett
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Louis Gossett']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:work_of_art . ?d property:cast_member resource:Louis_Gossett }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1132575
P162
Q502895
USER
Who produced An Officer and a Gentleman ?
(Q1132575,P162,c(Q502895))
action filter_type
action find
entity Q1132575
relation P162
type Q502895
['Q1132575', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q1132575 property:P162 ?o . ?o rdf:type ontology:Q502895 }
An Officer and a Gentleman
action filter_type
action find
entity An Officer and a Gentleman
relation producer
type common name
['An Officer and a Gentleman', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:An_Officer_and_a_Gentleman property:producer ?o . ?o rdf:type ontology:common_name }
[]
common name
Q15834179 Q1252187
SYSTEM
Martin Elfand, Douglas Day Stewart
Q15834179 Q1252187
(Q1132575,P162,c(Q502895))
action filter_type
action find
entity Q1132575
relation P162
type Q502895
[ANSWERS] produced An Officer and a Gentleman
['Q1132575', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q1132575 property:P162 ?o . ?o rdf:type ontology:Q502895 }
Martin Elfand Douglas Day Stewart
Martin Elfand and Douglas Day Stewart produced An Officer and a Gentleman
Martin Elfand Douglas Day Stewart
action filter_type
action find
entity An Officer and a Gentleman
relation producer
type common name
['An Officer and a Gentleman', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:An_Officer_and_a_Gentleman property:producer ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q15834179 Q1252187
P162
Q838948
USER
Which works of art created Martin Elfand and Douglas Day Stewart ?
(c(Q838948),P162,Q15834179) (c(Q838948),P162,Q1252187)
action union
action filter_type
action find_reverse
entity Q15834179
relation P162
type Q838948
action filter_type
action find_reverse
entity Q1252187
relation P162
type Q838948
[{'concept': 'Q838948'}, 'P162', 'Q15834179'] [{'concept': 'Q838948'}, 'P162', 'Q1252187']
SELECT DISTINCT ?y WHERE { { ?y property:P162 resource:Q15834179 . ?y rdf:type ontology:Q838948 } UNION { ?y rdf:type ontology:Q838948 . ?y property:P162 resource:Q1252187 } }
Martin Elfand Douglas Day Stewart
action union
action filter_type
action find_reverse
entity Martin Elfand
relation producer
type work of art
action filter_type
action find_reverse
entity Douglas Day Stewart
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Martin Elfand'] [{'concept': 'work of art'}, 'producer', 'Douglas Day Stewart']
SELECT DISTINCT ?y WHERE { { ?y property:producer resource:Martin_Elfand . ?y rdf:type ontology:work_of_art } UNION { ?y rdf:type ontology:work_of_art . ?y property:producer resource:Douglas_Day_Stewart } }
[]
work of art
Q1132575 Q1132575 Q1420374
SYSTEM
King David for 3rd, An Officer and a Gentleman for 1st, 2nd
Q478618 Q1420374 Q1132575 Q1132575
(c(Q838948),P162,Q15834179) (c(Q838948),P162,Q1252187)
action union
action filter_type
action find_reverse
entity Q15834179
relation P162
type Q838948
action filter_type
action find_reverse
entity Q1252187
relation P162
type Q838948
[ANSWERS]
[{'concept': 'Q838948'}, 'P162', 'Q15834179'] [{'concept': 'Q838948'}, 'P162', 'Q1252187']
SELECT DISTINCT ?y WHERE { { ?y property:P162 resource:Q15834179 . ?y rdf:type ontology:Q838948 } UNION { ?y rdf:type ontology:Q838948 . ?y property:P162 resource:Q1252187 } }
Clara's Heart King David An Officer and a Gentleman An Officer and a Gentleman
An Officer and a Gentleman, An Officer and a Gentleman and King David created Martin Elfand and Douglas Day Stewart
An Officer and a Gentleman An Officer and a Gentleman King David
action union
action filter_type
action find_reverse
entity Martin Elfand
relation producer
type work of art
action filter_type
action find_reverse
entity Douglas Day Stewart
relation producer
type work of art
[{'concept': 'work of art'}, 'producer', 'Martin Elfand'] [{'concept': 'work of art'}, 'producer', 'Douglas Day Stewart']
SELECT DISTINCT ?y WHERE { { ?y property:producer resource:Martin_Elfand . ?y rdf:type ontology:work_of_art } UNION { ?y rdf:type ontology:work_of_art . ?y property:producer resource:Douglas_Day_Stewart } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1132575
P915
Q15617994
USER
Which location was that work of art filmed ?
(Q1132575,P915,c(Q15617994))
action filter_type
action find
entity Q1132575
relation P915
type Q15617994
['Q1132575', 'P915', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q1132575 property:P915 ?h . ?h rdf:type ontology:Q15617994 }
An Officer and a Gentleman
action filter_type
action find
entity An Officer and a Gentleman
relation filming location
type designation for an administrative territorial entity
['An Officer and a Gentleman', 'filming location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:An_Officer_and_a_Gentleman property:filming_location ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1132575
SYSTEM
Did you mean An Officer and a Gentleman ?
Q1132575 Q1132575 Q1420374
(Q1132575,P915,c(Q15617994)) (Q1132575,P915,c(Q15617994)) (Q1420374,P915,c(Q15617994))
[ANSWER]
['Q1132575', 'P915', {'concept': 'Q15617994'}] ['Q1132575', 'P915', {'concept': 'Q15617994'}] ['Q1420374', 'P915', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q1132575 property:P915 ?h . ?h rdf:type ontology:Q15617994 }
An Officer and a Gentleman An Officer and a Gentleman King David
Did you mean An Officer and a Gentleman ?
An Officer and a Gentleman
['An Officer and a Gentleman', 'filming location', {'concept': 'designation for an administrative territorial entity'}] ['An Officer and a Gentleman', 'filming location', {'concept': 'designation for an administrative territorial entity'}] ['King David', 'filming location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:An_Officer_and_a_Gentleman property:filming_location ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1132575,P915,c(Q15617994))
['Q1132575', 'P915', {'concept': 'Q15617994'}]
['An Officer and a Gentleman', 'filming location', {'concept': 'designation for an administrative territorial entity'}]
[]
Q928
SYSTEM
Philippines
Q928
(Q1132575,P915,c(Q15617994))
action filter_type
action find
entity Q1132575
relation P915
type Q15617994
The [ANSWER] was that work of art filmed
['Q1132575', 'P915', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q1132575 property:P915 ?h . ?h rdf:type ontology:Q15617994 }
Philippines
The Philippines was that work of art filmed
Philippines
action filter_type
action find
entity An Officer and a Gentleman
relation filming location
type designation for an administrative territorial entity
['An Officer and a Gentleman', 'filming location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:An_Officer_and_a_Gentleman property:filming_location ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q1656682 Q151885 Q838948
USER
Which works of art are a portion of atleast 1 events or concepts ?
(c(Q838948),P361,c(Q1656682)|c(Q151885))
action atleast
action union
action find_tuple_counts
relation P361
type Q838948
type Q1656682
action find_tuple_counts
relation P361
type Q838948
type Q151885
value 1
[{'concept': 'Q838948'}, 'P361', [{'concept': 'Q1656682'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) ?t WHERE { { ?t property:P361 ?s . ?t rdf:type ontology:Q838948 . ?s rdf:type ontology:Q1656682 } UNION { ?t property:P361 ?s . ?t rdf:type ontology:Q838948 . ?s rdf:type ontology:Q151885 } } GROUP BY ?t } . FILTER ( ?x >= 1 ) }
action atleast
action union
action find_tuple_counts
relation part of
type work of art
type event
action find_tuple_counts
relation part of
type work of art
type concept
value 1
[{'concept': 'work of art'}, 'part of', [{'concept': 'event'}, {'concept': 'concept'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) ?t WHERE { { ?t property:part_of ?s . ?t rdf:type ontology:work_of_art . ?s rdf:type ontology:event } UNION { ?t property:part_of ?s . ?t rdf:type ontology:work_of_art . ?s rdf:type ontology:concept } } GROUP BY ?t } . FILTER ( ?x >= 1 ) }
[]
event concept work of art
Q131397 Q552113 Q510876
SYSTEM
Venus of Willendorf, Venus of Dolní Věstonice, Venus of Lespugue
Q6774033 Q312522 Q1214531 Q700728 Q116580 Q131397 Q552113 Q24169384 Q691284 Q510876 Q4918377 Q856764 Q377296 Q724710 Q1530239 Q1127555 Q1737844 Q702658 Q203765
(c(Q838948),P361,c(Q1656682)|c(Q151885))
action atleast
action union
action find_tuple_counts
relation P361
type Q838948
type Q1656682
action find_tuple_counts
relation P361
type Q838948
type Q151885
value 1
[ANSWERS] are a portion of atleast 1 events or concepts
[{'concept': 'Q838948'}, 'P361', [{'concept': 'Q1656682'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) ?t WHERE { { ?t property:P361 ?s . ?t rdf:type ontology:Q838948 . ?s rdf:type ontology:Q1656682 } UNION { ?t property:P361 ?s . ?t rdf:type ontology:Q838948 . ?s rdf:type ontology:Q151885 } } GROUP BY ?t } . FILTER ( ?x >= 1 ) }
Marsyas Venus of Hohle Fels Ain Sakhri lovers Venus of Galgenberg Swimming Reindeer Venus of Willendorf Venus of Dolní Věstonice Vénus impudique Venus of Langenzersdorf Venus of Lespugue Bison Licking Insect Bite Venus of Tan-Tan Venus of Petřkovice Venus of Savignano Venus of Mauern Westray Wife Phallus of Schelklingen Lion man of the Hohlenstein Stadel Venus of Laussel
Venus of Willendorf, Venus of Dolní Věstonice and Venus of Lespugue are a portion of atleast 1 events or concepts
Venus of Willendorf Venus of Dolní Věstonice Venus of Lespugue
action atleast
action union
action find_tuple_counts
relation part of
type work of art
type event
action find_tuple_counts
relation part of
type work of art
type concept
value 1
[{'concept': 'work of art'}, 'part of', [{'concept': 'event'}, {'concept': 'concept'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) ?t WHERE { { ?t property:part_of ?s . ?t rdf:type ontology:work_of_art . ?s rdf:type ontology:event } UNION { ?t property:part_of ?s . ?t rdf:type ontology:work_of_art . ?s rdf:type ontology:concept } } GROUP BY ?t } . FILTER ( ?x >= 1 ) }
[]