Simple Question (Direct)
Simple Question
Q933140
P106
Q12737077
USER
Which occupation has Carlos Andrade as his/her 's career ?
(Q933140,P106,c(Q12737077))
action filter_type
action find
entity Q933140
relation P106
type Q12737077
['Q933140', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q933140 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Carlos Andrade
action filter_type
action find
entity Carlos Andrade
relation occupation
type occupation
['Carlos Andrade', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Carlos_Andrade property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q3665646
SYSTEM
basketball player
Q3665646
(Q933140,P106,c(Q12737077))
action filter_type
action find
entity Q933140
relation P106
type Q12737077
The [ANSWER] has Carlos Andrade as his/her 's career
['Q933140', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q933140 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
basketball player
The basketball player has Carlos Andrade as his/her 's career
basketball player
action filter_type
action find
entity Carlos Andrade
relation occupation
type occupation
['Carlos Andrade', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Carlos_Andrade property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q933140
P27
Q15617994
USER
Which administrative territory is the native country of Carlos Andrade ?
(Q933140,P27,c(Q15617994))
action filter_type
action find
entity Q933140
relation P27
type Q15617994
['Q933140', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q933140 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Carlos Andrade
action filter_type
action find
entity Carlos Andrade
relation country of citizenship
type designation for an administrative territorial entity
['Carlos Andrade', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Carlos_Andrade property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q45
SYSTEM
Portugal
Q45
(Q933140,P27,c(Q15617994))
action filter_type
action find
entity Q933140
relation P27
type Q15617994
[ANSWER] is the native country of Carlos Andrade
['Q933140', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q933140 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Portugal
Portugal is the native country of Carlos Andrade
Portugal
action filter_type
action find
entity Carlos Andrade
relation country of citizenship
type designation for an administrative territorial entity
['Carlos Andrade', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Carlos_Andrade property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q933140
P161
Q838948
USER
Which work of art does Carlos Andrade star in ?
(c(Q838948),P161,Q933140)
action filter_type
action find_reverse
entity Q933140
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q933140']
SELECT DISTINCT ?n WHERE { ?n property:P161 resource:Q933140 . ?n rdf:type ontology:Q838948 }
Carlos Andrade
action filter_type
action find_reverse
entity Carlos Andrade
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Carlos Andrade']
SELECT DISTINCT ?n WHERE { ?n property:cast_member resource:Carlos_Andrade . ?n rdf:type ontology:work_of_art }
[]
work of art
Q1137899
SYSTEM
Funny People
Q1137899
(c(Q838948),P161,Q933140)
action filter_type
action find_reverse
entity Q933140
relation P161
type Q838948
Carlos Andrade stars in [ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q933140']
SELECT DISTINCT ?n WHERE { ?n property:P161 resource:Q933140 . ?n rdf:type ontology:Q838948 }
Funny People
Carlos Andrade stars in Funny People
Funny People
action filter_type
action find_reverse
entity Carlos Andrade
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Carlos Andrade']
SELECT DISTINCT ?n WHERE { ?n property:cast_member resource:Carlos_Andrade . ?n rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1137899
P136
Q483394
USER
What can be considered as category for that work of art ?
(Q1137899,P136,c(Q483394))
action filter_type
action find
entity Q1137899
relation P136
type Q483394
['Q1137899', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?i WHERE { resource:Q1137899 property:P136 ?i . ?i rdf:type ontology:Q483394 }
Funny People
action filter_type
action find
entity Funny People
relation genre
type genre
['Funny People', 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?i WHERE { resource:Funny_People property:genre ?i . ?i rdf:type ontology:genre }
[]
genre
Q859369
SYSTEM
comedy-drama
Q859369
(Q1137899,P136,c(Q483394))
action filter_type
action find
entity Q1137899
relation P136
type Q483394
[ANSWER] can be considered as category for that work of art
['Q1137899', 'P136', {'concept': 'Q483394'}]
SELECT DISTINCT ?i WHERE { resource:Q1137899 property:P136 ?i . ?i rdf:type ontology:Q483394 }
comedy-drama
Comedy-drama can be considered as category for that work of art
comedy-drama
action filter_type
action find
entity Funny People
relation genre
type genre
['Funny People', 'genre', {'concept': 'genre'}]
SELECT DISTINCT ?i WHERE { resource:Funny_People property:genre ?i . ?i rdf:type ontology:genre }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q859369 Q1475674
P136
Q838948
USER
Does The Preacher's Wife a that genre as its type ?
(Q1475674,P136,Q859369)
action is_in
entity Q859369
action find
entity Q1475674
relation P136
['Q1475674', 'P136', 'Q859369']
ASK WHERE { resource:Q1475674 property:P136 resource:Q859369 }
comedy-drama The Preacher's Wife
action is_in
entity comedy-drama
action find
entity The Preacher's Wife
relation genre
["The Preacher's Wife", 'genre', 'comedy-drama']
ASK WHERE { resource:The_Preacher's_Wife property:genre resource:comedy-drama }
[]
work of art
SYSTEM
YES
(Q1475674,P136,Q859369)
action is_in
entity Q859369
action find
entity Q1475674
relation P136
[ANSWER]
['Q1475674', 'P136', 'Q859369']
ASK WHERE { resource:Q1475674 property:P136 resource:Q859369 }
Yes
action is_in
entity comedy-drama
action find
entity The Preacher's Wife
relation genre
["The Preacher's Wife", 'genre', 'comedy-drama']
ASK WHERE { resource:The_Preacher's_Wife property:genre resource:comedy-drama }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P941
Q838948 Q838948 Q15709879
USER
How many works of art were approximately 1 works of art and artwork series inspired by ?
(c(Q838948)|c(Q15709879),P941,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P941
type Q838948
type Q15709879
value 1
[[{'concept': 'Q838948'}, {'concept': 'Q15709879'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) ?x WHERE { { ?c property:P941 ?x . ?c rdf:type ontology:Q838948 . ?x rdf:type ontology:Q838948 } UNION { ?c property:P941 ?x . ?x rdf:type ontology:Q838948 . ?c rdf:type ontology:Q15709879 } } GROUP BY ?x } . FILTER ( ?m = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type work of art
action find_reverse_tuple_counts
relation inspired by
type work of art
type artwork series
value 1
[[{'concept': 'work of art'}, {'concept': 'artwork series'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) ?x WHERE { { ?c property:inspired_by ?x . ?c rdf:type ontology:work_of_art . ?x rdf:type ontology:work_of_art } UNION { ?c property:inspired_by ?x . ?x rdf:type ontology:work_of_art . ?c rdf:type ontology:artwork_series } } GROUP BY ?x } . FILTER ( ?m = 1 ) }
[]
work of art work of art artwork series
SYSTEM
16
Q1136305 Q107724 Q1852671 Q17738 Q181598 Q2568137 Q753298 Q1754737 Q1432001 Q7445655 Q186014 Q4936847 Q734834 Q375786 Q83186 Q465478
(c(Q838948)|c(Q15709879),P941,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
action find_reverse_tuple_counts
relation P941
type Q838948
type Q15709879
value 1
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q15709879'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) ?x WHERE { { ?c property:P941 ?x . ?c rdf:type ontology:Q838948 . ?x rdf:type ontology:Q838948 } UNION { ?c property:P941 ?x . ?x rdf:type ontology:Q838948 . ?c rdf:type ontology:Q15709879 } } GROUP BY ?x } . FILTER ( ?m = 1 ) }
Doryphoros Thunderball Carnival of Souls Star Wars Episode IV: A New Hope King Lear How to Explain Pictures to a Dead Hare Uncle Vanya Lady Snowblood Torquato Tasso Seedbed Zeitgeist: The Movie Body Pressure Ghent Altarpiece Hippolytus Romeo and Juliet Star Trek II: The Wrath of Khan
16
action count
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type work of art
action find_reverse_tuple_counts
relation inspired by
type work of art
type artwork series
value 1
[[{'concept': 'work of art'}, {'concept': 'artwork series'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) ?x WHERE { { ?c property:inspired_by ?x . ?c rdf:type ontology:work_of_art . ?x rdf:type ontology:work_of_art } UNION { ?c property:inspired_by ?x . ?x rdf:type ontology:work_of_art . ?c rdf:type ontology:artwork_series } } GROUP BY ?x } . FILTER ( ?m = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3902053 Q1137899
P161
Q502895
USER
Which people starred in Funny People or Pianoforte ?
OR((Q1137899,P161,c(Q502895)), (Q3902053,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1137899
relation P161
action find
entity Q3902053
relation P161
type Q502895
{'OR': [['Q1137899', 'P161', {'concept': 'Q502895'}], ['Q3902053', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . { { resource:Q1137899 property:P161 ?t } UNION { resource:Q3902053 property:P161 ?t } } }
Pianoforte Funny People
action filter_type
action union
action find
entity Funny People
relation cast member
action find
entity Pianoforte
relation cast member
type common name
{'OR': [['Funny People', 'cast member', {'concept': 'common name'}], ['Pianoforte', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . { { resource:Funny_People property:cast_member ?t } UNION { resource:Pianoforte property:cast_member ?t } } }
[]
common name
Q3313479 Q229011 Q2138235 Q367094 Q1371229 Q239845 Q220836 Q933140 Q3938629 Q132952
SYSTEM
Some of them are Mike O'Connell, Leslie Mann, Bryan Batt, Andy Dick, Norm Macdonald, Marie-Christine Barrault, Ray Romano, Carlos Andrade, Roberto Bonanni, Adam Sandler
Q2837784 Q242208 Q310300 Q367094 Q430922 Q658690 Q220308 Q16021057 Q220836 Q5608 Q1371229 Q369482 Q432281 Q361076 Q3498847 Q3101983 Q313388 Q3766324 Q239845 Q433692 Q13590460 Q210547 Q132952 Q3769241 Q229013 Q229011 Q52447 Q313705 Q933140 Q4440 Q3938629 Q298672 Q3313479 Q2138235
OR((Q1137899,P161,c(Q502895)), (Q3902053,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1137899
relation P161
action find
entity Q3902053
relation P161
type Q502895
[ANSWERS] starred in Funny People or Pianoforte
{'OR': [['Q1137899', 'P161', {'concept': 'Q502895'}], ['Q3902053', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . { { resource:Q1137899 property:P161 ?t } UNION { resource:Q3902053 property:P161 ?t } } }
Allan Wasserman Maggie Siff James Taylor Andy Dick Paul Reiser Charles Fleischer Seth Rogen Iris Apatow Ray Romano Eminem Norm Macdonald Aziz Ansari Carla Gallo Tommy Anderson Steve Bannos George Wallace Jonah Hill Giovannella Grifeo Marie-Christine Barrault Nicole Ari Parker Torsten Voges Aubrey Plaza Adam Sandler Giulia Boschi Sarah Silverman Leslie Mann RZA Jason Schwartzman Carlos Andrade Eric Bana Roberto Bonanni Justin Long Mike O'Connell Bryan Batt
Mike O'Connell, Leslie Mann, Bryan Batt, Andy Dick, Norm Macdonald, Marie-Christine Barrault, Ray Romano, Carlos Andrade, Roberto Bonanni and Adam Sandler starred in Funny People or Pianoforte
Mike O'Connell Leslie Mann Bryan Batt Andy Dick Norm Macdonald Marie-Christine Barrault Ray Romano Carlos Andrade Roberto Bonanni Adam Sandler
action filter_type
action union
action find
entity Funny People
relation cast member
action find
entity Pianoforte
relation cast member
type common name
{'OR': [['Funny People', 'cast member', {'concept': 'common name'}], ['Pianoforte', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . { { resource:Funny_People property:cast_member ?t } UNION { resource:Pianoforte property:cast_member ?t } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by around 3193 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3193
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?c ) WHERE { ?o property:P1303 ?a . ?a rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?a } . FILTER ( ?c = 3193 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3193
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?c ) WHERE { ?o property:instrument ?a . ?a rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?a } . FILTER ( ?c = 3193 ) }
[]
musical instrument common name
Q8355 Q1444 Q128309
SYSTEM
violin, organ, drum kit
Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3193
[ANSWERS] are played by around 3193 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?c ) WHERE { ?o property:P1303 ?a . ?a rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?a } . FILTER ( ?c = 3193 ) }
violin organ drum kit
Violin, organ and drum kit are played by around 3193 people
violin organ drum kit
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3193
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?c ) WHERE { ?o property:instrument ?a . ?a rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?a } . FILTER ( ?c = 3193 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3383850 Q45
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relations with Portugal or are the native countriesof Pierre Banel ?
OR((Q45,P530,c(Q15617994)), (Q3383850,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q45
relation P530
action find
entity Q3383850
relation P27
type Q15617994
{'OR': [['Q45', 'P530', {'concept': 'Q15617994'}], ['Q3383850', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q45 property:P530 ?x } UNION { resource:Q3383850 property:P27 ?x } } . ?x rdf:type ontology:Q15617994 }
Pierre Banel Portugal
action filter_type
action union
action find
entity Portugal
relation diplomatic relation
action find
entity Pierre Banel
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Portugal', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Pierre Banel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Portugal property:diplomatic_relation ?x } UNION { resource:Pierre_Banel property:country_of_citizenship ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q142 Q38 Q1011
SYSTEM
Brazil, France, Italy, Cape Verde
Q155 Q142 Q38 Q1011
OR((Q45,P530,c(Q15617994)), (Q3383850,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q45
relation P530
action find
entity Q3383850
relation P27
type Q15617994
[ANSWERS] have diplomatic relations with Portugal or are the native countriesof Pierre Banel
{'OR': [['Q45', 'P530', {'concept': 'Q15617994'}], ['Q3383850', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q45 property:P530 ?x } UNION { resource:Q3383850 property:P27 ?x } } . ?x rdf:type ontology:Q15617994 }
Brazil France Italy Cape Verde
Brazil, France, Italy and Cape Verde have diplomatic relations with Portugal or are the native countriesof Pierre Banel
Brazil France Italy Cape Verde
action filter_type
action union
action find
entity Portugal
relation diplomatic relation
action find
entity Pierre Banel
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Portugal', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Pierre Banel', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Portugal property:diplomatic_relation ?x } UNION { resource:Pierre_Banel property:country_of_citizenship ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4384222
P530
Q15617994
USER
Do Putevye Usadby 1331 km have ambassadorial relations with those ones ?
(Q4384222,P530,Q155) (Q4384222,P530,Q142) (Q4384222,P530,Q38) (Q4384222,P530,Q1011)
action is_in
entity prev_answer
action find
entity Q4384222
relation P530
['Q4384222', 'P530', 'Q155'] ['Q4384222', 'P530', 'Q142'] ['Q4384222', 'P530', 'Q38'] ['Q4384222', 'P530', 'Q1011']
ASK WHERE { resource:Q4384222 property:P530 ?a . VALUES ( ?a ) { ( resource:Q155 ) ( resource:Q142 ) ( resource:Q38 ) } }
Putevye Usadby 1331 km
action is_in
entity prev_answer
action find
entity Putevye Usadby 1331 km
relation diplomatic relation
['Putevye Usadby 1331 km', 'diplomatic relation', 'Brazil'] ['Putevye Usadby 1331 km', 'diplomatic relation', 'France'] ['Putevye Usadby 1331 km', 'diplomatic relation', 'Italy'] ['Putevye Usadby 1331 km', 'diplomatic relation', 'Cape Verde']
ASK WHERE { resource:Putevye_Usadby_1331_km property:diplomatic_relation ?a . VALUES ( ?a ) { ( resource:Brazil ) ( resource:France ) ( resource:Italy ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q4384222,P530,Q155) (Q4384222,P530,Q142) (Q4384222,P530,Q38) (Q4384222,P530,Q1011)
action is_in
entity prev_answer
action find
entity Q4384222
relation P530
[ANSWER]
['Q4384222', 'P530', 'Q155'] ['Q4384222', 'P530', 'Q142'] ['Q4384222', 'P530', 'Q38'] ['Q4384222', 'P530', 'Q1011']
ASK WHERE { resource:Q4384222 property:P530 ?a . VALUES ( ?a ) { ( resource:Q155 ) ( resource:Q142 ) ( resource:Q38 ) } }
No
action is_in
entity prev_answer
action find
entity Putevye Usadby 1331 km
relation diplomatic relation
['Putevye Usadby 1331 km', 'diplomatic relation', 'Brazil'] ['Putevye Usadby 1331 km', 'diplomatic relation', 'France'] ['Putevye Usadby 1331 km', 'diplomatic relation', 'Italy'] ['Putevye Usadby 1331 km', 'diplomatic relation', 'Cape Verde']
ASK WHERE { resource:Putevye_Usadby_1331_km property:diplomatic_relation ?a . VALUES ( ?a ) { ( resource:Brazil ) ( resource:France ) ( resource:Italy ) } }
[]