Simple Question (Direct)
Simple Question
Q5371847
P172
Q2472587
USER
Which people does Emilio Cruz have as his/her race ?
(Q5371847,P172,c(Q2472587))
action filter_type
action find
entity Q5371847
relation P172
type Q2472587
['Q5371847', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?a WHERE { resource:Q5371847 property:P172 ?a . ?a rdf:type ontology:Q2472587 }
Emilio Cruz
action filter_type
action find
entity Emilio Cruz
relation ethnic group
type people
['Emilio Cruz', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?a WHERE { resource:Emilio_Cruz property:ethnic_group ?a . ?a rdf:type ontology:people }
[]
people
Q49085
SYSTEM
African Americans
Q49085
(Q5371847,P172,c(Q2472587))
action filter_type
action find
entity Q5371847
relation P172
type Q2472587
[ANSWER]
['Q5371847', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?a WHERE { resource:Q5371847 property:P172 ?a . ?a rdf:type ontology:Q2472587 }
African Americans
African Americans
action filter_type
action find
entity Emilio Cruz
relation ethnic group
type people
['Emilio Cruz', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?a WHERE { resource:Emilio_Cruz property:ethnic_group ?a . ?a rdf:type ontology:people }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5371847
P734
Q82799
USER
Who is associated with Emilio Cruz ?
(Q5371847,P734,c(Q82799))
action filter_type
action find
entity Q5371847
relation P734
type Q82799
['Q5371847', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { resource:Q5371847 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Emilio Cruz
action filter_type
action find
entity Emilio Cruz
relation family name
type name
['Emilio Cruz', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { resource:Emilio_Cruz property:family_name ?y . ?y rdf:type ontology:name }
[]
name
Q923342
SYSTEM
Cruz
Q923342
(Q5371847,P734,c(Q82799))
action filter_type
action find
entity Q5371847
relation P734
type Q82799
[ANSWER]
['Q5371847', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?y WHERE { resource:Q5371847 property:P734 ?y . ?y rdf:type ontology:Q82799 }
Cruz
Cruz
action filter_type
action find
entity Emilio Cruz
relation family name
type name
['Emilio Cruz', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?y WHERE { resource:Emilio_Cruz property:family_name ?y . ?y rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5371847
P106
Q12737077
USER
What are the job of that person ?
(Q923342,P106,c(Q12737077))
action filter_type
action find
entity Q5371847
relation P106
type Q12737077
['Q923342', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q5371847 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
Emilio Cruz
action filter_type
action find
entity Emilio Cruz
relation occupation
type occupation
['Cruz', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Emilio_Cruz property:occupation ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q1028181 Q483501
SYSTEM
painter, artist
Q1028181 Q483501
(Q923342,P106,c(Q12737077))
action filter_type
action find
entity Q5371847
relation P106
type Q12737077
[ANSWERS]
['Q923342', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q5371847 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
painter artist
painter artist
action filter_type
action find
entity Emilio Cruz
relation occupation
type occupation
['Cruz', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Emilio_Cruz property:occupation ?o . ?o rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q483501
P170
Q502895
USER
Which person was created by that occupation ?
(c(Q502895),P170,Q483501)
action filter_type
action find_reverse
entity Q483501
relation P170
type Q502895
[{'concept': 'Q502895'}, 'P170', 'Q483501']
SELECT DISTINCT ?e WHERE { ?e property:P170 resource:Q483501 . ?e rdf:type ontology:Q502895 }
artist
action filter_type
action find_reverse
entity artist
relation creator
type common name
[{'concept': 'common name'}, 'creator', 'artist']
SELECT DISTINCT ?e WHERE { ?e property:creator resource:artist . ?e rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1028181
SYSTEM
Did you mean painter ?
Q1028181 Q483501
(c(Q502895),P170,Q1028181) (c(Q502895),P170,Q483501)
[ANSWER]
[{'concept': 'Q502895'}, 'P170', 'Q1028181'] [{'concept': 'Q502895'}, 'P170', 'Q483501']
SELECT DISTINCT ?e WHERE { ?e property:P170 resource:Q483501 . ?e rdf:type ontology:Q502895 }
painter artist
Did you mean painter ?
painter
[{'concept': 'common name'}, 'creator', 'painter'] [{'concept': 'common name'}, 'creator', 'artist']
SELECT DISTINCT ?e WHERE { ?e property:creator resource:artist . ?e rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant artist. Could you tell me the answer for that?
(c(Q502895),P170,Q483501)
Q483501
[{'concept': 'Q502895'}, 'P170', 'Q483501']
[{'concept': 'common name'}, 'creator', 'artist']
[]
Q19315980
SYSTEM
Tanya Lock
Q19315980
(c(Q502895),P170,Q483501)
action filter_type
action find_reverse
entity Q483501
relation P170
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P170', 'Q483501']
SELECT DISTINCT ?e WHERE { ?e property:P170 resource:Q483501 . ?e rdf:type ontology:Q502895 }
Tanya Lock
Tanya Lock
action filter_type
action find_reverse
entity artist
relation creator
type common name
[{'concept': 'common name'}, 'creator', 'artist']
SELECT DISTINCT ?e WHERE { ?e property:creator resource:artist . ?e rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q2472587 Q39546 Q82799
USER
Which names are the eponym of exactly 1 peoples and tools ?
(c(Q82799),P138,c(Q2472587)|c(Q39546))
action equal
action union
action find_tuple_counts
relation P138
type Q82799
type Q2472587
action find_tuple_counts
relation P138
type Q82799
type Q39546
value 1
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q2472587'}, {'concept': 'Q39546'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) ?m WHERE { { ?m property:P138 ?b . ?m rdf:type ontology:Q82799 . ?b rdf:type ontology:Q2472587 } UNION { ?m property:P138 ?b . ?m rdf:type ontology:Q82799 . ?b rdf:type ontology:Q39546 } } GROUP BY ?m } . FILTER ( ?u = 1 ) }
action equal
action union
action find_tuple_counts
relation named after
type name
type people
action find_tuple_counts
relation named after
type name
type tool
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'people'}, {'concept': 'tool'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) ?m WHERE { { ?m property:named_after ?b . ?m rdf:type ontology:name . ?b rdf:type ontology:people } UNION { ?m property:named_after ?b . ?m rdf:type ontology:name . ?b rdf:type ontology:tool } } GROUP BY ?m } . FILTER ( ?u = 1 ) }
[]
people tool name
Q25058808 Q20027829 Q17625919
SYSTEM
Dumoulin, Saxon, Du Moulin
Q25058808 Q20027829 Q17625919
(c(Q82799),P138,c(Q2472587)|c(Q39546))
action equal
action union
action find_tuple_counts
relation P138
type Q82799
type Q2472587
action find_tuple_counts
relation P138
type Q82799
type Q39546
value 1
[ANSWERS]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q2472587'}, {'concept': 'Q39546'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) ?m WHERE { { ?m property:P138 ?b . ?m rdf:type ontology:Q82799 . ?b rdf:type ontology:Q2472587 } UNION { ?m property:P138 ?b . ?m rdf:type ontology:Q82799 . ?b rdf:type ontology:Q39546 } } GROUP BY ?m } . FILTER ( ?u = 1 ) }
Dumoulin Saxon Du Moulin
Dumoulin Saxon Du Moulin
action equal
action union
action find_tuple_counts
relation named after
type name
type people
action find_tuple_counts
relation named after
type name
type tool
value 1
[{'concept': 'name'}, 'named after', [{'concept': 'people'}, {'concept': 'tool'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) ?m WHERE { { ?m property:named_after ?b . ?m rdf:type ontology:name . ?b rdf:type ontology:people } UNION { ?m property:named_after ?b . ?m rdf:type ontology:name . ?b rdf:type ontology:tool } } GROUP BY ?m } . FILTER ( ?u = 1 ) }
[]