Simple Question (Direct)
Simple Question
Q468234
P19
Q7275
USER
Which state was Maurice Bishop born in ?
(Q468234,P19,c(Q7275))
action filter_type
action find
entity Q468234
relation P19
type Q7275
['Q468234', 'P19', {'concept': 'Q7275'}]
SELECT DISTINCT ?m WHERE { resource:Q468234 property:P19 ?m . ?m rdf:type ontology:Q7275 }
Maurice Bishop
action filter_type
action find
entity Maurice Bishop
relation place of birth
type state
['Maurice Bishop', 'place of birth', {'concept': 'state'}]
SELECT DISTINCT ?m WHERE { resource:Maurice_Bishop property:place_of_birth ?m . ?m rdf:type ontology:state }
[]
state
Q21203
SYSTEM
Aruba
Q21203
(Q468234,P19,c(Q7275))
action filter_type
action find
entity Q468234
relation P19
type Q7275
Maurice Bishop was born in [ANSWER]
['Q468234', 'P19', {'concept': 'Q7275'}]
SELECT DISTINCT ?m WHERE { resource:Q468234 property:P19 ?m . ?m rdf:type ontology:Q7275 }
Aruba
Maurice Bishop was born in Aruba
Aruba
action filter_type
action find
entity Maurice Bishop
relation place of birth
type state
['Maurice Bishop', 'place of birth', {'concept': 'state'}]
SELECT DISTINCT ?m WHERE { resource:Maurice_Bishop property:place_of_birth ?m . ?m rdf:type ontology:state }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q468234
P106
Q12737077
USER
What does Maurice Bishop do for a living ?
(Q468234,P106,c(Q12737077))
action filter_type
action find
entity Q468234
relation P106
type Q12737077
['Q468234', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12737077 . resource:Q468234 property:P106 ?i }
Maurice Bishop
action filter_type
action find
entity Maurice Bishop
relation occupation
type occupation
['Maurice Bishop', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:occupation . resource:Maurice_Bishop property:occupation ?i }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q468234,P106,c(Q12737077))
action filter_type
action find
entity Q468234
relation P106
type Q12737077
Maurice Bishop does a [ANSWER] for a living
['Q468234', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q12737077 . resource:Q468234 property:P106 ?i }
politician
Maurice Bishop does a politician for a living
politician
action filter_type
action find
entity Maurice Bishop
relation occupation
type occupation
['Maurice Bishop', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:occupation . resource:Maurice_Bishop property:occupation ?i }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q485894
Q12737077
USER
And also tell me about Lee Yo-won?
(Q485894,P106,c(Q12737077))
action filter_type
action find
entity Q485894
relation P106
type Q12737077
['Q485894', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q485894 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Lee Yo-won
action filter_type
action find
entity Lee Yo-won
relation occupation
type occupation
['Lee Yo-won', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Lee_Yo-won property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q4610556 Q33999
SYSTEM
model, actor
Q4610556 Q33999
(Q485894,P106,c(Q12737077))
action filter_type
action find
entity Q485894
relation P106
type Q12737077
[ANSWERS]
['Q485894', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?q WHERE { resource:Q485894 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
model actor
model actor
action filter_type
action find
entity Lee Yo-won
relation occupation
type occupation
['Lee Yo-won', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?q WHERE { resource:Lee_Yo-won property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6155301
P106
Q502895
USER
Do Ulises Toirac have the profession of those occupations ?
(Q6155301,P106,Q4610556) (Q6155301,P106,Q33999)
action is_in
entity prev_answer
action find
entity Q6155301
relation P106
['Q6155301', 'P106', 'Q4610556'] ['Q6155301', 'P106', 'Q33999']
ASK WHERE { VALUES ( ?o ) { ( resource:Q4610556 ) ( resource:Q33999 ) } . resource:Q6155301 property:P106 ?o }
Ulises Toirac
action is_in
entity prev_answer
action find
entity Ulises Toirac
relation occupation
['Ulises Toirac', 'occupation', 'model'] ['Ulises Toirac', 'occupation', 'actor']
ASK WHERE { VALUES ( ?o ) { ( resource:model ) ( resource:actor ) } . resource:Ulises_Toirac property:occupation ?o }
[]
common name
SYSTEM
NO
(Q6155301,P106,Q4610556) (Q6155301,P106,Q33999)
action is_in
entity prev_answer
action find
entity Q6155301
relation P106
[ANSWER]
['Q6155301', 'P106', 'Q4610556'] ['Q6155301', 'P106', 'Q33999']
ASK WHERE { VALUES ( ?o ) { ( resource:Q4610556 ) ( resource:Q33999 ) } . resource:Q6155301 property:P106 ?o }
No
action is_in
entity prev_answer
action find
entity Ulises Toirac
relation occupation
['Ulises Toirac', 'occupation', 'model'] ['Ulises Toirac', 'occupation', 'actor']
ASK WHERE { VALUES ( ?o ) { ( resource:model ) ( resource:actor ) } . resource:Ulises_Toirac property:occupation ?o }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q468234 Q769
P27
Q1048835
USER
Does Maurice Bishop belong to Grenada ?
(Q468234,P27,Q769)
action is_in
entity Q769
action find
entity Q468234
relation P27
['Q468234', 'P27', 'Q769']
ASK WHERE { resource:Q468234 property:P27 resource:Q769 }
Maurice Bishop Grenada
action is_in
entity Grenada
action find
entity Maurice Bishop
relation country of citizenship
['Maurice Bishop', 'country of citizenship', 'Grenada']
ASK WHERE { resource:Maurice_Bishop property:country_of_citizenship resource:Grenada }
[]
political territorial entity
SYSTEM
YES
(Q468234,P27,Q769)
action is_in
entity Q769
action find
entity Q468234
relation P27
[ANSWER]
['Q468234', 'P27', 'Q769']
ASK WHERE { resource:Q468234 property:P27 resource:Q769 }
Yes
action is_in
entity Grenada
action find
entity Maurice Bishop
relation country of citizenship
['Maurice Bishop', 'country of citizenship', 'Grenada']
ASK WHERE { resource:Maurice_Bishop property:country_of_citizenship resource:Grenada }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q130232 Q485894
P136 P161
Q838948
USER
Which works of art stars Lee Yo-won as actor and as drama film as their class ?
AND((c(Q838948),P161,Q485894), (c(Q838948),P136,Q130232))
action filter_type
action intersection
action find_reverse
entity Q485894
relation P161
action find_reverse
entity Q130232
relation P136
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q485894'], [{'concept': 'Q838948'}, 'P136', 'Q130232']]}
SELECT DISTINCT ?d WHERE { ?d property:P136 resource:Q130232 . ?d property:P161 resource:Q485894 . ?d rdf:type ontology:Q838948 }
drama film Lee Yo-won
action filter_type
action intersection
action find_reverse
entity Lee Yo-won
relation cast member
action find_reverse
entity drama film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', 'Lee Yo-won'], [{'concept': 'work of art'}, 'genre', 'drama film']]}
SELECT DISTINCT ?d WHERE { ?d property:genre resource:drama_film . ?d property:cast_member resource:Lee_Yo-won . ?d rdf:type ontology:work_of_art }
[]
work of art
Q5455335 Q7759779 Q624373
SYSTEM
Fist of Legend, The Recipe, Take Care of My Cat
Q5455335 Q7759779 Q624373
AND((c(Q838948),P161,Q485894), (c(Q838948),P136,Q130232))
action filter_type
action intersection
action find_reverse
entity Q485894
relation P161
action find_reverse
entity Q130232
relation P136
type Q838948
[ANSWERS]
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q485894'], [{'concept': 'Q838948'}, 'P136', 'Q130232']]}
SELECT DISTINCT ?d WHERE { ?d property:P136 resource:Q130232 . ?d property:P161 resource:Q485894 . ?d rdf:type ontology:Q838948 }
Fist of Legend The Recipe Take Care of My Cat
Which works of art stars Lee Yo-won as actor and as drama film as their class
Fist of Legend The Recipe Take Care of My Cat
action filter_type
action intersection
action find_reverse
entity Lee Yo-won
relation cast member
action find_reverse
entity drama film
relation genre
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', 'Lee Yo-won'], [{'concept': 'work of art'}, 'genre', 'drama film']]}
SELECT DISTINCT ?d WHERE { ?d property:genre resource:drama_film . ?d property:cast_member resource:Lee_Yo-won . ?d rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q33999 Q14915751
P106
Q502895
USER
How many people have a job as actor and prostitute ?
(c(Q502895),P106,Q33999) (c(Q502895),P106,Q14915751)
action count
action intersection
action filter_type
action find_reverse
entity Q33999
relation P106
type Q502895
action filter_type
action find_reverse
entity Q14915751
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q33999'] [{'concept': 'Q502895'}, 'P106', 'Q14915751']
SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { ?l rdf:type ontology:Q502895 . ?l property:P106 resource:Q33999 . ?l rdf:type ontology:Q502895 . ?l property:P106 resource:Q14915751 }
actor prostitute
action count
action intersection
action filter_type
action find_reverse
entity actor
relation occupation
type common name
action filter_type
action find_reverse
entity prostitute
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'actor'] [{'concept': 'common name'}, 'occupation', 'prostitute']
SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { ?l rdf:type ontology:common_name . ?l property:occupation resource:actor . ?l rdf:type ontology:common_name . ?l property:occupation resource:prostitute }
[]
common name
SYSTEM
13
Q3241390 Q312688 Q4971481 Q433576 Q4721442 Q462312 Q3560521 Q4859221 Q7346671 Q5844741 Q434132 Q271732 Q15810402
(c(Q502895),P106,Q33999) (c(Q502895),P106,Q14915751)
action count
action intersection
action filter_type
action find_reverse
entity Q33999
relation P106
type Q502895
action filter_type
action find_reverse
entity Q14915751
relation P106
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P106', 'Q33999'] [{'concept': 'Q502895'}, 'P106', 'Q14915751']
SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { ?l rdf:type ontology:Q502895 . ?l property:P106 resource:Q33999 . ?l rdf:type ontology:Q502895 . ?l property:P106 resource:Q14915751 }
Linda Wong John Holmes Britney Amber Annie Sprinkle Alexis Fire Sunset Thomas Viper Barbara Payton Robert La Tourneaux Anita Alvarado Mika Tan Heidi Fleiss Fred Halsted
13
action count
action intersection
action filter_type
action find_reverse
entity actor
relation occupation
type common name
action filter_type
action find_reverse
entity prostitute
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'actor'] [{'concept': 'common name'}, 'occupation', 'prostitute']
SELECT DISTINCT ( COUNT ( ?l ) AS ?x ) WHERE { ?l rdf:type ontology:common_name . ?l property:occupation resource:actor . ?l rdf:type ontology:common_name . ?l property:occupation resource:prostitute }
[]