Simple Question (Direct)
Simple Question
Q571426
P184
Q502895
USER
Which person was the doctoral supervisor of Johan Hendrik Caspar Kern ?
(Q571426,P184,c(Q502895))
action filter_type
action find
entity Q571426
relation P184
type Q502895
['Q571426', 'P184', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q571426 property:P184 ?z . ?z rdf:type ontology:Q502895 }
Johan Hendrik Caspar Kern
action filter_type
action find
entity Johan Hendrik Caspar Kern
relation doctoral advisor
type common name
['Johan Hendrik Caspar Kern', 'doctoral advisor', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Johan_Hendrik_Caspar_Kern property:doctoral_advisor ?z . ?z rdf:type ontology:common_name }
[]
common name
Q72205
SYSTEM
Albrecht Weber
Q72205
(Q571426,P184,c(Q502895))
action filter_type
action find
entity Q571426
relation P184
type Q502895
[ANSWER] was the doctoral supervisor of Johan Hendrik Caspar Kern
['Q571426', 'P184', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q571426 property:P184 ?z . ?z rdf:type ontology:Q502895 }
Albrecht Weber
Albrecht Weber was the doctoral supervisor of Johan Hendrik Caspar Kern
Albrecht Weber
action filter_type
action find
entity Johan Hendrik Caspar Kern
relation doctoral advisor
type common name
['Johan Hendrik Caspar Kern', 'doctoral advisor', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Johan_Hendrik_Caspar_Kern property:doctoral_advisor ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q571426
P20
Q56061
USER
Where did the expiration of Johan Hendrik Caspar Kern occur ?
(Q571426,P20,c(Q56061))
action filter_type
action find
entity Q571426
relation P20
type Q56061
['Q571426', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q571426 property:P20 ?u . ?u rdf:type ontology:Q56061 }
Johan Hendrik Caspar Kern
action filter_type
action find
entity Johan Hendrik Caspar Kern
relation place of death
type administrative territorial entity
['Johan Hendrik Caspar Kern', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Johan_Hendrik_Caspar_Kern property:place_of_death ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q803
SYSTEM
Utrecht
Q803
(Q571426,P20,c(Q56061))
action filter_type
action find
entity Q571426
relation P20
type Q56061
The expiration of Johan Hendrik Caspar did in [ANSWER]
['Q571426', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q571426 property:P20 ?u . ?u rdf:type ontology:Q56061 }
Utrecht
The expiration of Johan Hendrik Caspar did in Utrecht
Utrecht
action filter_type
action find
entity Johan Hendrik Caspar Kern
relation place of death
type administrative territorial entity
['Johan Hendrik Caspar Kern', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Johan_Hendrik_Caspar_Kern property:place_of_death ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q571426
P106
Q12737077
USER
Which occupations have Johan Hendrik Caspar Kern as his/her 's career ?
(Q571426,P106,c(Q12737077))
action filter_type
action find
entity Q571426
relation P106
type Q12737077
['Q571426', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . resource:Q571426 property:P106 ?m }
Johan Hendrik Caspar Kern
action filter_type
action find
entity Johan Hendrik Caspar Kern
relation occupation
type occupation
['Johan Hendrik Caspar Kern', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . resource:Johan_Hendrik_Caspar_Kern property:occupation ?m }
[]
occupation
Q14467526 Q1731155 Q1622272
SYSTEM
linguist, orientalist, university teacher
Q14467526 Q1731155 Q1622272
(Q571426,P106,c(Q12737077))
action filter_type
action find
entity Q571426
relation P106
type Q12737077
[ANSWERS] have Johan Hendrik Caspar Kern as his/her 's career
['Q571426', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . resource:Q571426 property:P106 ?m }
linguist orientalist university teacher
Linguist, orientalist and university teacher have Johan Hendrik Caspar Kern as his/her 's career
linguist orientalist university teacher
action filter_type
action find
entity Johan Hendrik Caspar Kern
relation occupation
type occupation
['Johan Hendrik Caspar Kern', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . resource:Johan_Hendrik_Caspar_Kern property:occupation ?m }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1622272
P417
Q502895
USER
Which person is the patron saint of that occupation ?
(Q1622272,P417,c(Q502895))
action filter_type
action find
entity Q1622272
relation P417
type Q502895
['Q1622272', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q1622272 property:P417 ?r . ?r rdf:type ontology:Q502895 }
university teacher
action filter_type
action find
entity university teacher
relation patron saint
type common name
['university teacher', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:university_teacher property:patron_saint ?r . ?r rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q14467526
SYSTEM
Did you mean linguist ?
Q14467526 Q1731155 Q1622272
(Q14467526,P417,c(Q502895)) (Q1731155,P417,c(Q502895)) (Q1622272,P417,c(Q502895))
[ANSWER]
['Q14467526', 'P417', {'concept': 'Q502895'}] ['Q1731155', 'P417', {'concept': 'Q502895'}] ['Q1622272', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q1622272 property:P417 ?r . ?r rdf:type ontology:Q502895 }
linguist orientalist university teacher
Did you mean linguist ?
linguist
['linguist', 'patron saint', {'concept': 'common name'}] ['orientalist', 'patron saint', {'concept': 'common name'}] ['university teacher', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:university_teacher property:patron_saint ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant university teacher. Could you tell me the answer for that?
(Q1622272,P417,c(Q502895))
Q1622272
['Q1622272', 'P417', {'concept': 'Q502895'}]
['university teacher', 'patron saint', {'concept': 'common name'}]
[]
Q9438
SYSTEM
Thomas Aquinas
Q9438
(Q1622272,P417,c(Q502895))
action filter_type
action find
entity Q1622272
relation P417
type Q502895
[ANSWER] is the patron saint of that occupation
['Q1622272', 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { resource:Q1622272 property:P417 ?r . ?r rdf:type ontology:Q502895 }
Thomas Aquinas
Thomas Aquinas is the patron saint of that occupation
Thomas Aquinas
action filter_type
action find
entity university teacher
relation patron saint
type common name
['university teacher', 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { resource:university_teacher property:patron_saint ?r . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9438
P1576
Q151885
USER
What is the lifestyle of that person ?
(Q9438,P1576,c(Q151885))
action filter_type
action find
entity Q9438
relation P1576
type Q151885
['Q9438', 'P1576', {'concept': 'Q151885'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q151885 . resource:Q9438 property:P1576 ?r }
Thomas Aquinas
action filter_type
action find
entity Thomas Aquinas
relation lifestyle
type concept
['Thomas Aquinas', 'lifestyle', {'concept': 'concept'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:concept . resource:Thomas_Aquinas property:lifestyle ?r }
[]
concept
Q12328016
SYSTEM
mystic
Q12328016
(Q9438,P1576,c(Q151885))
action filter_type
action find
entity Q9438
relation P1576
type Q151885
The lifestyle of that person is a [ANSWER]
['Q9438', 'P1576', {'concept': 'Q151885'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q151885 . resource:Q9438 property:P1576 ?r }
mystic
The lifestyle of that person is a mystic
mystic
action filter_type
action find
entity Thomas Aquinas
relation lifestyle
type concept
['Thomas Aquinas', 'lifestyle', {'concept': 'concept'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:concept . resource:Thomas_Aquinas property:lifestyle ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9438
P737
Q502895
USER
Who were the people who influenced that one ?
(Q12328016,P737,c(Q502895))
action filter_type
action find
entity Q9438
relation P737
type Q502895
['Q12328016', 'P737', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q9438 property:P737 ?j . ?j rdf:type ontology:Q502895 }
Thomas Aquinas
action filter_type
action find
entity Thomas Aquinas
relation influenced by
type common name
['mystic', 'influenced by', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Thomas_Aquinas property:influenced_by ?j . ?j rdf:type ontology:common_name }
[]
common name
Q1541 Q859 Q868
SYSTEM
Cicero, Plato, Aristotle
Q859 Q9191 Q43939 Q9546 Q127398 Q39837 Q184500 Q102851 Q8011 Q1541 Q179759 Q60059 Q868 Q8018 Q9200
(Q12328016,P737,c(Q502895))
action filter_type
action find
entity Q9438
relation P737
type Q502895
The people influenced that one were influenced [ANSWERS]
['Q12328016', 'P737', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q9438 property:P737 ?j . ?j rdf:type ontology:Q502895 }
Plato René Descartes Anselm of Canterbury Al-Ghazali Maimonides Averroes Johannes Scotus Eriugena Boethius Avicenna Cicero Al-Kindi Albertus Magnus Aristotle Augustine of Hippo Paul
The people influenced that one were influenced Cicero, Plato and Aristotle
Cicero Plato Aristotle
action filter_type
action find
entity Thomas Aquinas
relation influenced by
type common name
['mystic', 'influenced by', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Thomas_Aquinas property:influenced_by ?j . ?j rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q17210831
P674
Q223393
USER
Are those people a character of Mankan Tokorodokoro ?
(Q17210831,P674,Q1541) (Q17210831,P674,Q859) (Q17210831,P674,Q868)
action is_in
entity prev_answer
action find
entity Q17210831
relation P674
['Q17210831', 'P674', 'Q1541'] ['Q17210831', 'P674', 'Q859'] ['Q17210831', 'P674', 'Q868']
ASK WHERE { VALUES ( ?y ) { ( resource:Q859 ) ( resource:Q9191 ) ( resource:Q43939 ) } . resource:Q17210831 property:P674 ?y }
Mankan Tokorodokoro
action is_in
entity prev_answer
action find
entity Mankan Tokorodokoro
relation characters
['Mankan Tokorodokoro', 'characters', 'Cicero'] ['Mankan Tokorodokoro', 'characters', 'Plato'] ['Mankan Tokorodokoro', 'characters', 'Aristotle']
ASK WHERE { VALUES ( ?y ) { ( resource:Plato ) ( resource:René_Descartes ) ( resource:Anselm_of_Canterbury ) } . resource:Mankan_Tokorodokoro property:characters ?y }
[]
literary genre
SYSTEM
NO
(Q17210831,P674,Q1541) (Q17210831,P674,Q859) (Q17210831,P674,Q868)
action is_in
entity prev_answer
action find
entity Q17210831
relation P674
[ANSWER]
['Q17210831', 'P674', 'Q1541'] ['Q17210831', 'P674', 'Q859'] ['Q17210831', 'P674', 'Q868']
ASK WHERE { VALUES ( ?y ) { ( resource:Q859 ) ( resource:Q9191 ) ( resource:Q43939 ) } . resource:Q17210831 property:P674 ?y }
No
action is_in
entity prev_answer
action find
entity Mankan Tokorodokoro
relation characters
['Mankan Tokorodokoro', 'characters', 'Cicero'] ['Mankan Tokorodokoro', 'characters', 'Plato'] ['Mankan Tokorodokoro', 'characters', 'Aristotle']
ASK WHERE { VALUES ( ?y ) { ( resource:Plato ) ( resource:René_Descartes ) ( resource:Anselm_of_Canterbury ) } . resource:Mankan_Tokorodokoro property:characters ?y }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by atmost 3362 people ?
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3362
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?h ) WHERE { ?x property:P1303 ?m . ?x rdf:type ontology:Q502895 . ?m rdf:type ontology:Q34379 } GROUP BY ?m } . FILTER ( ?h <= 3362 ) }
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3362
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?h ) WHERE { ?x property:instrument ?m . ?x rdf:type ontology:common_name . ?m rdf:type ontology:musical_instrument } GROUP BY ?m } . FILTER ( ?h <= 3362 ) }
[]
musical instrument common name
SYSTEM
64
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3362
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?h ) WHERE { ?x property:P1303 ?m . ?x rdf:type ontology:Q502895 . ?m rdf:type ontology:Q34379 } GROUP BY ?m } . FILTER ( ?h <= 3362 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
64
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3362
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?x ) AS ?h ) WHERE { ?x property:instrument ?m . ?x rdf:type ontology:common_name . ?m rdf:type ontology:musical_instrument } GROUP BY ?m } . FILTER ( ?h <= 3362 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1541
P106
Q28640 Q151885
USER
How many professions or concepts are the professions of Cicero ?
(Q1541,P106,c(Q28640)) (Q1541,P106,c(Q151885))
action count
action union
action filter_type
action find
entity Q1541
relation P106
type Q28640
action filter_type
action find
entity Q1541
relation P106
type Q151885
['Q1541', 'P106', {'concept': 'Q28640'}] ['Q1541', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { resource:Q1541 property:P106 ?m . ?m rdf:type ontology:Q28640 } UNION { resource:Q1541 property:P106 ?m . ?m rdf:type ontology:Q151885 } }
Cicero
action count
action union
action filter_type
action find
entity Cicero
relation occupation
type profession
action filter_type
action find
entity Cicero
relation occupation
type concept
['Cicero', 'occupation', {'concept': 'profession'}] ['Cicero', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { resource:Cicero property:occupation ?m . ?m rdf:type ontology:profession } UNION { resource:Cicero property:occupation ?m . ?m rdf:type ontology:concept } }
[]
profession concept
SYSTEM
3
Q185351 Q4964182 Q40348
(Q1541,P106,c(Q28640)) (Q1541,P106,c(Q151885))
action count
action union
action filter_type
action find
entity Q1541
relation P106
type Q28640
action filter_type
action find
entity Q1541
relation P106
type Q151885
[ANSWER]
['Q1541', 'P106', {'concept': 'Q28640'}] ['Q1541', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { resource:Q1541 property:P106 ?m . ?m rdf:type ontology:Q28640 } UNION { resource:Q1541 property:P106 ?m . ?m rdf:type ontology:Q151885 } }
jurist philosopher lawyer
3
action count
action union
action filter_type
action find
entity Cicero
relation occupation
type profession
action filter_type
action find
entity Cicero
relation occupation
type concept
['Cicero', 'occupation', {'concept': 'profession'}] ['Cicero', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { resource:Cicero property:occupation ?m . ?m rdf:type ontology:profession } UNION { resource:Cicero property:occupation ?m . ?m rdf:type ontology:concept } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q6619679
USER
Which fictional humanoids did min number of people do the dubbing for ?
(c(Q6619679),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q6619679
type Q502895
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?v ) WHERE { ?d rdf:type ontology:Q6619679 . ?j rdf:type ontology:Q502895 . ?d property:P725 ?j } GROUP BY ?d } . FILTER ( ?v = ?q ) . { SELECT DISTINCT ( MIN ( ?n ) AS ?q ) { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?n ) WHERE { ?e property:P725 ?s . ?e rdf:type ontology:Q6619679 . ?s rdf:type ontology:Q502895 } GROUP BY ?e } } }
action argmin
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?v ) WHERE { ?d rdf:type ontology:fictional_humanoid . ?j rdf:type ontology:common_name . ?d property:voice_actor ?j } GROUP BY ?d } . FILTER ( ?v = ?q ) . { SELECT DISTINCT ( MIN ( ?n ) AS ?q ) { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?n ) WHERE { ?e property:voice_actor ?s . ?e rdf:type ontology:fictional_humanoid . ?s rdf:type ontology:common_name } GROUP BY ?e } } }
[]
common name fictional humanoid
Q1623086 Q1205263 Q3149148
SYSTEM
Hector Barbossa, Eli Vance, Imoen
Q1623086 Q1205263 Q4992177 Q24010814 Q819585 Q1079617 Q4006757 Q15614636 Q1056953 Q250221 Q3149148 Q757015 Q15620419 Q13471616 Q12879 Q1154920
(c(Q6619679),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q6619679
type Q502895
Min number of people did the dubbing for [ANSWERS]
[{'concept': 'Q6619679'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?v ) WHERE { ?d rdf:type ontology:Q6619679 . ?j rdf:type ontology:Q502895 . ?d property:P725 ?j } GROUP BY ?d } . FILTER ( ?v = ?q ) . { SELECT DISTINCT ( MIN ( ?n ) AS ?q ) { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?n ) WHERE { ?e property:P725 ?s . ?e rdf:type ontology:Q6619679 . ?s rdf:type ontology:Q502895 } GROUP BY ?e } } }
Hector Barbossa Eli Vance Cave Johnson Deckard Cain Jaina Proudmoore Wallace Breen Utena Tenjo Anna (Disney) Minsc Alyx Vance Imoen Sailor Moon Elsa Mr. Bean Toph Beifong Father Grigori
Min number of people did the dubbing for Hector Barbossa, Eli Vance and Imoen
Hector Barbossa Eli Vance Imoen
action argmin
action find_tuple_counts
relation voice actor
type fictional humanoid
type common name
[{'concept': 'fictional humanoid'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?v ) WHERE { ?d rdf:type ontology:fictional_humanoid . ?j rdf:type ontology:common_name . ?d property:voice_actor ?j } GROUP BY ?d } . FILTER ( ?v = ?q ) . { SELECT DISTINCT ( MIN ( ?n ) AS ?q ) { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?n ) WHERE { ?e property:voice_actor ?s . ?e rdf:type ontology:fictional_humanoid . ?s rdf:type ontology:common_name } GROUP BY ?e } } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1623086 Q1205263 Q3149148
P21
Q290
USER
What are the sex of Hector Barbossa, Eli Vance and Imoen ?
(Q1623086,P21,c(Q290)) (Q1205263,P21,c(Q290)) (Q3149148,P21,c(Q290))
action union
action filter_type
action find
entity Q1623086
relation P21
type Q290
action filter_type
action find
entity Q1205263
relation P21
type Q290
action filter_type
action find
entity Q3149148
relation P21
type Q290
['Q1623086', 'P21', {'concept': 'Q290'}] ['Q1205263', 'P21', {'concept': 'Q290'}] ['Q3149148', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?j ) { ( resource:Q1623086 ) ( resource:Q1205263 ) } . ?j property:P21 ?e }
Hector Barbossa Eli Vance Imoen
action union
action filter_type
action find
entity Hector Barbossa
relation gender
type sex
action filter_type
action find
entity Eli Vance
relation gender
type sex
action filter_type
action find
entity Imoen
relation gender
type sex
['Hector Barbossa', 'gender', {'concept': 'sex'}] ['Eli Vance', 'gender', {'concept': 'sex'}] ['Imoen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?j ) { ( resource:Hector_Barbossa ) ( resource:Eli_Vance ) } . ?j property:gender ?e }
[]
sex
Q6581097 Q6581097 Q6581072
SYSTEM
male for 1st, 2nd, female for 3rd
Q6581097 Q6581097 Q6581072
(Q1623086,P21,c(Q290)) (Q1205263,P21,c(Q290)) (Q3149148,P21,c(Q290))
action union
action filter_type
action find
entity Q1623086
relation P21
type Q290
action filter_type
action find
entity Q1205263
relation P21
type Q290
action filter_type
action find
entity Q3149148
relation P21
type Q290
[ANSWERS]
['Q1623086', 'P21', {'concept': 'Q290'}] ['Q1205263', 'P21', {'concept': 'Q290'}] ['Q3149148', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?j ) { ( resource:Q1623086 ) ( resource:Q1205263 ) } . ?j property:P21 ?e }
male male female
The sex of Hector Barbossa , Eli Vance and Imoen are all male, male and female
male male female
action union
action filter_type
action find
entity Hector Barbossa
relation gender
type sex
action filter_type
action find
entity Eli Vance
relation gender
type sex
action filter_type
action find
entity Imoen
relation gender
type sex
['Hector Barbossa', 'gender', {'concept': 'sex'}] ['Eli Vance', 'gender', {'concept': 'sex'}] ['Imoen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?j ) { ( resource:Hector_Barbossa ) ( resource:Eli_Vance ) } . ?j property:gender ?e }
[]