Simple Question (Direct)
Simple Question
Q3514997
P106
Q12737077
USER
What is the job of William Laparra ?
(Q3514997,P106,c(Q12737077))
action filter_type
action find
entity Q3514997
relation P106
type Q12737077
['Q3514997', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q3514997 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
William Laparra
action filter_type
action find
entity William Laparra
relation occupation
type occupation
['William Laparra', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:William_Laparra property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q1028181
SYSTEM
painter
Q1028181
(Q3514997,P106,c(Q12737077))
action filter_type
action find
entity Q3514997
relation P106
type Q12737077
The job of William Laparra is a [ANSWER]
['Q3514997', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q3514997 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
painter
The job of William Laparra is a painter
painter
action filter_type
action find
entity William Laparra
relation occupation
type occupation
['William Laparra', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:William_Laparra property:occupation ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3514997
P21
Q290
USER
What is the sex of William Laparra ?
(Q3514997,P21,c(Q290))
action filter_type
action find
entity Q3514997
relation P21
type Q290
['Q3514997', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q290 . resource:Q3514997 property:P21 ?b }
William Laparra
action filter_type
action find
entity William Laparra
relation gender
type sex
['William Laparra', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:sex . resource:William_Laparra property:gender ?b }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3514997,P21,c(Q290))
action filter_type
action find
entity Q3514997
relation P21
type Q290
The sex of William Laparra is the [ANSWER]
['Q3514997', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q290 . resource:Q3514997 property:P21 ?b }
male
The sex of William Laparra is the male
male
action filter_type
action find
entity William Laparra
relation gender
type sex
['William Laparra', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:sex . resource:William_Laparra property:gender ?b }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1717802
Q290
USER
And how about Walter Besig?
(Q1717802,P21,c(Q290))
action filter_type
action find
entity Q1717802
relation P21
type Q290
['Q1717802', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q1717802 property:P21 ?p . ?p rdf:type ontology:Q290 }
Walter Besig
action filter_type
action find
entity Walter Besig
relation gender
type sex
['Walter Besig', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Walter_Besig property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1717802,P21,c(Q290))
action filter_type
action find
entity Q1717802
relation P21
type Q290
[ANSWER]
['Q1717802', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q1717802 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Walter Besig
relation gender
type sex
['Walter Besig', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Walter_Besig property:gender ?p . ?p rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q3282637 Q1028181
P106
Q502895
USER
Which people have a job as painter and film producer ?
AND((c(Q502895),P106,Q1028181), (c(Q502895),P106,Q3282637))
action filter_type
action intersection
action find_reverse
entity Q1028181
relation P106
action find_reverse
entity Q3282637
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q1028181'], [{'concept': 'Q502895'}, 'P106', 'Q3282637']]}
SELECT DISTINCT ?q WHERE { ?q property:P106 resource:Q1028181 . ?q property:P106 resource:Q3282637 . ?q rdf:type ontology:Q502895 }
film producer painter
action filter_type
action intersection
action find_reverse
entity painter
relation occupation
action find_reverse
entity film producer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'painter'], [{'concept': 'common name'}, 'occupation', 'film producer']]}
SELECT DISTINCT ?q WHERE { ?q property:occupation resource:painter . ?q property:occupation resource:film_producer . ?q rdf:type ontology:common_name }
[]
common name
Q1825639 Q263324 Q26372 Q5603 Q2600468 Q188375 Q1377336 Q390140 Q5274639 Q1762914
SYSTEM
Some of them are Lina Mangiacapre, William Hanna, Takeshi Kitano, Andy Warhol, Antonio Capuano, Lucy Liu, Juan Padrón, Seitarou Kitayama, Diego Dubcovsky, Santiago Amigorena
Q6200053 Q1223349 Q188375 Q390140 Q1762914 Q36949 Q2886755 Q3544135 Q17425354 Q14501085 Q1449017 Q1377336 Q915955 Q5603 Q946314 Q1345827 Q7148193 Q3899724 Q1876145 Q3553698 Q5271159 Q3787466 Q536309 Q224650 Q315441 Q1428809 Q298761 Q20726463 Q2600468 Q998221 Q362319 Q2037344 Q20656303 Q2639384 Q5274639 Q1345420 Q1825639 Q575000 Q5530508 Q26372 Q2454290 Q704378 Q263324 Q4859020
AND((c(Q502895),P106,Q1028181), (c(Q502895),P106,Q3282637))
action filter_type
action intersection
action find_reverse
entity Q1028181
relation P106
action find_reverse
entity Q3282637
relation P106
type Q502895
[ANSWERS] have a job as painter and film producer
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q1028181'], [{'concept': 'Q502895'}, 'P106', 'Q3282637']]}
SELECT DISTINCT ?q WHERE { ?q property:P106 resource:Q1028181 . ?q property:P106 resource:Q3282637 . ?q rdf:type ontology:Q502895 }
Charles Swenson Dietmar Brehm Lucy Liu Seitarou Kitayama Santiago Amigorena Robert De Niro Bashar Shbib Fernando Allende Lucile Desamory Ralf-Peter Post Franz Schömbs Juan Padrón Brigid Berlin Andy Warhol Gregory Dark Mara Mattuschka Patrícia Mota Ashok Kumar Luigi De Marchi Valeria Sarmiento Diana Frey Hugo Ballin Ella Bergmann-Michel Sarah McLachlan Ralph Bakshi Hubert Sielecki Clive Barker Martin Flary Antonio Capuano Friedrich Jürgenson Jiří Trnka Ottavio Fabbri Martín Garrido Baron Alberto Grifi Diego Dubcovsky Hisham Zreiq Lina Mangiacapre Roberto Loyola Gelsen Gas Takeshi Kitano Tristán Bauer Emmanuel Lubezki William Hanna Barbara Januszkiewicz
Lina Mangiacapre, William Hanna, Takeshi Kitano, Andy Warhol, Antonio Capuano, Lucy Liu, Juan Padrón, Seitarou Kitayama, Diego Dubcovsky and Santiago Amigorena have a job as painter and film producer
Lina Mangiacapre William Hanna Takeshi Kitano Andy Warhol Antonio Capuano Lucy Liu Juan Padrón Seitarou Kitayama Diego Dubcovsky Santiago Amigorena
action filter_type
action intersection
action find_reverse
entity painter
relation occupation
action find_reverse
entity film producer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'painter'], [{'concept': 'common name'}, 'occupation', 'film producer']]}
SELECT DISTINCT ?q WHERE { ?q property:occupation resource:painter . ?q property:occupation resource:film_producer . ?q rdf:type ontology:common_name }
[]