Simple Question (Direct)
Simple Question
Q85134
P26
Q502895
USER
Which person is married to Joe May ?
(Q85134,P26,c(Q502895))
action filter_type
action find
entity Q85134
relation P26
type Q502895
['Q85134', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q85134 property:P26 ?u . ?u rdf:type ontology:Q502895 }
Joe May
action filter_type
action find
entity Joe May
relation spouse
type common name
['Joe May', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Joe_May property:spouse ?u . ?u rdf:type ontology:common_name }
[]
common name
Q90147
SYSTEM
Mia May
Q90147
(Q85134,P26,c(Q502895))
action filter_type
action find
entity Q85134
relation P26
type Q502895
[ANSWER]
['Q85134', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q85134 property:P26 ?u . ?u rdf:type ontology:Q502895 }
Mia May
Mia May
action filter_type
action find
entity Joe May
relation spouse
type common name
['Joe May', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Joe_May property:spouse ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q90147
P25
Q502895
USER
Who has that one as a mother ?
(c(Q502895),P25,Q90147)
action filter_type
action find_reverse
entity Q90147
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q90147']
SELECT DISTINCT ?f WHERE { ?f property:P25 resource:Q90147 . ?f rdf:type ontology:Q502895 }
Mia May
action filter_type
action find_reverse
entity Mia May
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Mia May']
SELECT DISTINCT ?f WHERE { ?f property:mother resource:Mia_May . ?f rdf:type ontology:common_name }
[]
common name
Q86007
SYSTEM
Eva May
Q86007
(c(Q502895),P25,Q90147)
action filter_type
action find_reverse
entity Q90147
relation P25
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P25', 'Q90147']
SELECT DISTINCT ?f WHERE { ?f property:P25 resource:Q90147 . ?f rdf:type ontology:Q502895 }
Eva May
Eva May
action filter_type
action find_reverse
entity Mia May
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Mia May']
SELECT DISTINCT ?f WHERE { ?f property:mother resource:Mia_May . ?f rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q90147
P40
Q502895
USER
Which person is a child of Mia May ?
(Q90147,P40,c(Q502895))
action filter_type
action find
entity Q90147
relation P40
type Q502895
['Q90147', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q90147 property:P40 ?b }
Mia May
action filter_type
action find
entity Mia May
relation child
type common name
['Mia May', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Mia_May property:child ?b }
[]
common name
Q86007
SYSTEM
Eva May
Q86007
(Q90147,P40,c(Q502895))
action filter_type
action find
entity Q90147
relation P40
type Q502895
[ANSWER]
['Q90147', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q90147 property:P40 ?b }
Eva May
Eva May
action filter_type
action find
entity Mia May
relation child
type common name
['Mia May', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Mia_May property:child ?b }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q26299860
P725
Q502895 Q386724
USER
How many works did greater number of people do the dubbing for than Hércules y el primer médico del mundo ?
(c(Q386724),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q386724
type Q502895
action count
action filter_type
action find
entity Q26299860
relation P725
type Q386724
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?k ) WHERE { ?r property:P725 ?s . ?r rdf:type ontology:Q386724 . ?s rdf:type ontology:Q502895 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { ?o rdf:type ontology:Q386724 . resource:Q26299860 property:P725 ?o } } . FILTER ( ?k > ?i ) }
Hércules y el primer médico del mundo
action count
action greater
action find_tuple_counts
relation voice actor
type work
type common name
action count
action filter_type
action find
entity Hércules y el primer médico del mundo
relation voice actor
type work
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?k ) WHERE { ?r property:voice_actor ?s . ?r rdf:type ontology:work . ?s rdf:type ontology:common_name } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { ?o rdf:type ontology:work . resource:Hércules_y_el_primer_médico_del_mundo property:voice_actor ?o } } . FILTER ( ?k > ?i ) }
[]
common name work
SYSTEM
5
Q26331781 Q23752771 Q26712000 Q26301623 Q23894983
(c(Q386724),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q386724
type Q502895
action count
action filter_type
action find
entity Q26299860
relation P725
type Q386724
[ANSWER]
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?k ) WHERE { ?r property:P725 ?s . ?r rdf:type ontology:Q386724 . ?s rdf:type ontology:Q502895 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { ?o rdf:type ontology:Q386724 . resource:Q26299860 property:P725 ?o } } . FILTER ( ?k > ?i ) }
Hércules y el examen de conducir Iron Man Hércules y los Tecno-Griegos Hércules y el primer día de escuela Iron Man 2
5
action count
action greater
action find_tuple_counts
relation voice actor
type work
type common name
action count
action filter_type
action find
entity Hércules y el primer médico del mundo
relation voice actor
type work
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?e ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?s ) AS ?k ) WHERE { ?r property:voice_actor ?s . ?r rdf:type ontology:work . ?s rdf:type ontology:common_name } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?i ) WHERE { ?o rdf:type ontology:work . resource:Hércules_y_el_primer_médico_del_mundo property:voice_actor ?o } } . FILTER ( ?k > ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q23752771
P725
Q502895 Q386724
USER
And also tell me about Iron Man?
(c(Q386724),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q386724
type Q502895
action count
action filter_type
action find
entity Q23752771
relation P725
type Q386724
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:Q23752771 property:P725 ?a . ?a rdf:type ontology:Q386724 } } . FILTER ( ?i > ?t ) . { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?i ) WHERE { ?q property:P725 ?w . ?q rdf:type ontology:Q386724 . ?w rdf:type ontology:Q502895 } GROUP BY ?q } }
Iron Man
action count
action greater
action find_tuple_counts
relation voice actor
type work
type common name
action count
action filter_type
action find
entity Iron Man
relation voice actor
type work
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:Iron_Man property:voice_actor ?a . ?a rdf:type ontology:work } } . FILTER ( ?i > ?t ) . { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?i ) WHERE { ?q property:voice_actor ?w . ?q rdf:type ontology:work . ?w rdf:type ontology:common_name } GROUP BY ?q } }
[]
common name work
SYSTEM
3
Q26331781 Q26712000 Q26301623
(c(Q386724),P725,c(Q502895))
action count
action greater
action find_tuple_counts
relation P725
type Q386724
type Q502895
action count
action filter_type
action find
entity Q23752771
relation P725
type Q386724
[ANSWER]
[{'concept': 'Q386724'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:Q23752771 property:P725 ?a . ?a rdf:type ontology:Q386724 } } . FILTER ( ?i > ?t ) . { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?i ) WHERE { ?q property:P725 ?w . ?q rdf:type ontology:Q386724 . ?w rdf:type ontology:Q502895 } GROUP BY ?q } }
Hércules y el examen de conducir Hércules y los Tecno-Griegos Hércules y el primer día de escuela
3
action count
action greater
action find_tuple_counts
relation voice actor
type work
type common name
action count
action filter_type
action find
entity Iron Man
relation voice actor
type work
[{'concept': 'work'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?t ) WHERE { resource:Iron_Man property:voice_actor ?a . ?a rdf:type ontology:work } } . FILTER ( ?i > ?t ) . { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?i ) WHERE { ?q property:voice_actor ?w . ?q rdf:type ontology:work . ?w rdf:type ontology:common_name } GROUP BY ?q } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q220971
P1303
Q34379 Q502895
USER
How many musical instruments can more number of people perform with than marimba ?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q220971
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?h ) WHERE { ?y rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 . ?n property:P1303 ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { resource:Q220971 property:P1303 ?s . ?s rdf:type ontology:Q34379 } } . FILTER ( ?h > ?t ) }
marimba
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity marimba
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?h ) WHERE { ?y rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name . ?n property:instrument ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { resource:marimba property:instrument ?s . ?s rdf:type ontology:musical_instrument } } . FILTER ( ?h > ?t ) }
[]
musical instrument common name
SYSTEM
15
Q80284 Q46185 Q80019 Q5994 Q81982 Q206987 Q8338 Q8371 Q8355 Q3382191 Q742180 Q1444 Q128309 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q220971
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?h ) WHERE { ?y rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 . ?n property:P1303 ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { resource:Q220971 property:P1303 ?s . ?s rdf:type ontology:Q34379 } } . FILTER ( ?h > ?t ) }
viola bass guitar double bass piano harpsichord vibraphone trumpet cello violin upright piano viola d'amore organ drum kit electronic keyboard drum
15
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity marimba
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?h ) WHERE { ?y rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name . ?n property:instrument ?y } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { resource:marimba property:instrument ?s . ?s rdf:type ontology:musical_instrument } } . FILTER ( ?h > ?t ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q3623688
P1303
Q34379 Q502895
USER
And also tell me about Paraguayan harp?
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q3623688
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { resource:Q3623688 property:P1303 ?w . ?w rdf:type ontology:Q34379 } } . FILTER ( ?g > ?j ) }
Paraguayan harp
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Paraguayan harp
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { resource:Paraguayan_harp property:instrument ?w . ?w rdf:type ontology:musical_instrument } } . FILTER ( ?g > ?j ) }
[]
musical instrument common name
SYSTEM
30
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action count
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q3623688
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { resource:Q3623688 property:P1303 ?w . ?w rdf:type ontology:Q34379 } } . FILTER ( ?g > ?j ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
30
action count
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Paraguayan harp
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?g ) WHERE { ?o property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?j ) WHERE { resource:Paraguayan_harp property:instrument ?w . ?w rdf:type ontology:musical_instrument } } . FILTER ( ?g > ?j ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q86007
P161
Q838948 Q201658
USER
How many works of art or film genres do Eva May star in ?
(c(Q838948),P161,Q86007) (c(Q201658),P161,Q86007)
action count
action union
action filter_type
action find_reverse
entity Q86007
relation P161
type Q838948
action filter_type
action find_reverse
entity Q86007
relation P161
type Q201658
[{'concept': 'Q838948'}, 'P161', 'Q86007'] [{'concept': 'Q201658'}, 'P161', 'Q86007']
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { { ?i property:P161 resource:Q86007 . ?i rdf:type ontology:Q838948 } UNION { ?i property:P161 resource:Q86007 . ?i rdf:type ontology:Q201658 } }
Eva May
action count
action union
action filter_type
action find_reverse
entity Eva May
relation cast member
type work of art
action filter_type
action find_reverse
entity Eva May
relation cast member
type film genre
[{'concept': 'work of art'}, 'cast member', 'Eva May'] [{'concept': 'film genre'}, 'cast member', 'Eva May']
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { { ?i property:cast_member resource:Eva_May . ?i rdf:type ontology:work_of_art } UNION { ?i property:cast_member resource:Eva_May . ?i rdf:type ontology:film_genre } }
[]
work of art film genre
SYSTEM
8
Q21869793 Q15990827 Q1456179 Q7084192 Q15990763 Q21869224 Q3707053 Q7731361
(c(Q838948),P161,Q86007) (c(Q201658),P161,Q86007)
action count
action union
action filter_type
action find_reverse
entity Q86007
relation P161
type Q838948
action filter_type
action find_reverse
entity Q86007
relation P161
type Q201658
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q86007'] [{'concept': 'Q201658'}, 'P161', 'Q86007']
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { { ?i property:P161 resource:Q86007 . ?i rdf:type ontology:Q838948 } UNION { ?i property:P161 resource:Q86007 . ?i rdf:type ontology:Q201658 } }
The Secret Agent Paganini Fridericus Rex Old Heidelberg Der Graf von Charolais Certificates of Death Die Fledermaus The Earl of Essex
8
action count
action union
action filter_type
action find_reverse
entity Eva May
relation cast member
type work of art
action filter_type
action find_reverse
entity Eva May
relation cast member
type film genre
[{'concept': 'work of art'}, 'cast member', 'Eva May'] [{'concept': 'film genre'}, 'cast member', 'Eva May']
SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) WHERE { { ?i property:cast_member resource:Eva_May . ?i rdf:type ontology:work_of_art } UNION { ?i property:cast_member resource:Eva_May . ?i rdf:type ontology:film_genre } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6702724 Q86007
P19
Q56061
USER
Which administrative territories were Eva May or Lukáš Zápotoka born at ?
OR((Q86007,P19,c(Q56061)), (Q6702724,P19,c(Q56061)))
action filter_type
action union
action find
entity Q86007
relation P19
action find
entity Q6702724
relation P19
type Q56061
{'OR': [['Q86007', 'P19', {'concept': 'Q56061'}], ['Q6702724', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q86007 property:P19 ?l } UNION { resource:Q6702724 property:P19 ?l } } . ?l rdf:type ontology:Q56061 }
Lukáš Zápotoka Eva May
action filter_type
action union
action find
entity Eva May
relation place of birth
action find
entity Lukáš Zápotoka
relation place of birth
type administrative territorial entity
{'OR': [['Eva May', 'place of birth', {'concept': 'administrative territorial entity'}], ['Lukáš Zápotoka', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Eva_May property:place_of_birth ?l } UNION { resource:Lukáš_Zápotoka property:place_of_birth ?l } } . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1741 Q27007
SYSTEM
Vienna, Bardejov
Q1741 Q27007
OR((Q86007,P19,c(Q56061)), (Q6702724,P19,c(Q56061)))
action filter_type
action union
action find
entity Q86007
relation P19
action find
entity Q6702724
relation P19
type Q56061
[ANSWERS]
{'OR': [['Q86007', 'P19', {'concept': 'Q56061'}], ['Q6702724', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q86007 property:P19 ?l } UNION { resource:Q6702724 property:P19 ?l } } . ?l rdf:type ontology:Q56061 }
Vienna Bardejov
Vienna Bardejov
action filter_type
action union
action find
entity Eva May
relation place of birth
action find
entity Lukáš Zápotoka
relation place of birth
type administrative territorial entity
{'OR': [['Eva May', 'place of birth', {'concept': 'administrative territorial entity'}], ['Lukáš Zápotoka', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Eva_May property:place_of_birth ?l } UNION { resource:Lukáš_Zápotoka property:place_of_birth ?l } } . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6702724
P21
Q290
USER
What is the sex of Lukáš Zápotoka ?
(Q1741,P21,c(Q290)) (Q27007,P21,c(Q290))
action filter_type
action find
entity Q6702724
relation P21
type Q290
['Q1741', 'P21', {'concept': 'Q290'}] ['Q27007', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q6702724 property:P21 ?i . ?i rdf:type ontology:Q290 }
Lukáš Zápotoka
action filter_type
action find
entity Lukáš Zápotoka
relation gender
type sex
['Vienna', 'gender', {'concept': 'sex'}] ['Bardejov', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Lukáš_Zápotoka property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1741,P21,c(Q290)) (Q27007,P21,c(Q290))
action filter_type
action find
entity Q6702724
relation P21
type Q290
[ANSWER]
['Q1741', 'P21', {'concept': 'Q290'}] ['Q27007', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q6702724 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
male
action filter_type
action find
entity Lukáš Zápotoka
relation gender
type sex
['Vienna', 'gender', {'concept': 'sex'}] ['Bardejov', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Lukáš_Zápotoka property:gender ?i . ?i rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation|Incomplete
Q16745446 Q6702724
P21
Q290
USER
And also Dickson Owusu
AND((Q6702724,P21,c(Q290)), (Q16745446,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q6702724
relation P21
action find
entity Q16745446
relation P21
type Q290
{'AND': [['Q6702724', 'P21', {'concept': 'Q290'}], ['Q16745446', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?p WHERE { resource:Q6702724 property:P21 ?p . resource:Q16745446 property:P21 ?p . ?p rdf:type ontology:Q290 }
Dickson Owusu Lukáš Zápotoka
action filter_type
action intersection
action find
entity Lukáš Zápotoka
relation gender
action find
entity Dickson Owusu
relation gender
type sex
{'AND': [['Lukáš Zápotoka', 'gender', {'concept': 'sex'}], ['Dickson Owusu', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?p WHERE { resource:Lukáš_Zápotoka property:gender ?p . resource:Dickson_Owusu property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
AND((Q6702724,P21,c(Q290)), (Q16745446,P21,c(Q290)))
action filter_type
action intersection
action find
entity Q6702724
relation P21
action find
entity Q16745446
relation P21
type Q290
[ANSWER]
{'AND': [['Q6702724', 'P21', {'concept': 'Q290'}], ['Q16745446', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?p WHERE { resource:Q6702724 property:P21 ?p . resource:Q16745446 property:P21 ?p . ?p rdf:type ontology:Q290 }
male
male
action filter_type
action intersection
action find
entity Lukáš Zápotoka
relation gender
action find
entity Dickson Owusu
relation gender
type sex
{'AND': [['Lukáš Zápotoka', 'gender', {'concept': 'sex'}], ['Dickson Owusu', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?p WHERE { resource:Lukáš_Zápotoka property:gender ?p . resource:Dickson_Owusu property:gender ?p . ?p rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19897792 Q6702724
P276 P19
Q56061
USER
Which administrative territories were Lukáš Zápotoka born or can Orfeas Stadium be found ?
OR((Q6702724,P19,c(Q56061)), (Q19897792,P276,c(Q56061)))
action filter_type
action union
action find
entity Q6702724
relation P19
action find
entity Q19897792
relation P276
type Q56061
{'OR': [['Q6702724', 'P19', {'concept': 'Q56061'}], ['Q19897792', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q6702724 property:P19 ?p } UNION { resource:Q19897792 property:P276 ?p } } . ?p rdf:type ontology:Q56061 }
Orfeas Stadium Lukáš Zápotoka
action filter_type
action union
action find
entity Lukáš Zápotoka
relation place of birth
action find
entity Orfeas Stadium
relation location
type administrative territorial entity
{'OR': [['Lukáš Zápotoka', 'place of birth', {'concept': 'administrative territorial entity'}], ['Orfeas Stadium', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Lukáš_Zápotoka property:place_of_birth ?p } UNION { resource:Orfeas_Stadium property:location ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3856 Q27007
SYSTEM
Nicosia, Bardejov
Q3856 Q27007
OR((Q6702724,P19,c(Q56061)), (Q19897792,P276,c(Q56061)))
action filter_type
action union
action find
entity Q6702724
relation P19
action find
entity Q19897792
relation P276
type Q56061
[ANSWERS]
{'OR': [['Q6702724', 'P19', {'concept': 'Q56061'}], ['Q19897792', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q6702724 property:P19 ?p } UNION { resource:Q19897792 property:P276 ?p } } . ?p rdf:type ontology:Q56061 }
Nicosia Bardejov
Nicosia Bardejov
action filter_type
action union
action find
entity Lukáš Zápotoka
relation place of birth
action find
entity Orfeas Stadium
relation location
type administrative territorial entity
{'OR': [['Lukáš Zápotoka', 'place of birth', {'concept': 'administrative territorial entity'}], ['Orfeas Stadium', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Lukáš_Zápotoka property:place_of_birth ?p } UNION { resource:Orfeas_Stadium property:location ?p } } . ?p rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q170247 Q27007
P190
Q56061
USER
Which administrative territories are the sister cities of Bardejov or Jinan ?
OR((Q27007,P190,c(Q56061)), (Q170247,P190,c(Q56061)))
action filter_type
action union
action find
entity Q27007
relation P190
action find
entity Q170247
relation P190
type Q56061
{'OR': [['Q27007', 'P190', {'concept': 'Q56061'}], ['Q170247', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { ?n property:P190 ?b . VALUES ( ?n ) { ( resource:Q27007 ) ( resource:Q170247 ) } } . ?b rdf:type ontology:Q56061 }
Jinan Bardejov
action filter_type
action union
action find
entity Bardejov
relation sister city
action find
entity Jinan
relation sister city
type administrative territorial entity
{'OR': [['Bardejov', 'sister city', {'concept': 'administrative territorial entity'}], ['Jinan', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { ?n property:sister_city ?b . VALUES ( ?n ) { ( resource:Bardejov ) ( resource:Jinan ) } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q200747 Q647 Q124342 Q127623 Q152436 Q42308 Q154835 Q726287
SYSTEM
Wakayama, Rennes, Montemarciano, Vantaa, Kfar Saba, Kharkiv, Mogilyov, Ashtabula
Q200747 Q647 Q124342 Q127623 Q152436 Q42308 Q154835 Q726287
OR((Q27007,P190,c(Q56061)), (Q170247,P190,c(Q56061)))
action filter_type
action union
action find
entity Q27007
relation P190
action find
entity Q170247
relation P190
type Q56061
[ANSWERS]
{'OR': [['Q27007', 'P190', {'concept': 'Q56061'}], ['Q170247', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { ?n property:P190 ?b . VALUES ( ?n ) { ( resource:Q27007 ) ( resource:Q170247 ) } } . ?b rdf:type ontology:Q56061 }
Wakayama Rennes Montemarciano Vantaa Kfar Saba Kharkiv Mogilyov Ashtabula
Wakayama Rennes Montemarciano Vantaa Kfar Saba Kharkiv Mogilyov Ashtabula
action filter_type
action union
action find
entity Bardejov
relation sister city
action find
entity Jinan
relation sister city
type administrative territorial entity
{'OR': [['Bardejov', 'sister city', {'concept': 'administrative territorial entity'}], ['Jinan', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { ?n property:sister_city ?b . VALUES ( ?n ) { ( resource:Bardejov ) ( resource:Jinan ) } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q200747 Q647 Q124342 Q127623 Q152436 Q42308 Q154835 Q726287
P190
Q56061
USER
Which administrative territories are the sister cities of those ones ?
(Q200747,P190,c(Q56061)) (Q647,P190,c(Q56061)) (Q124342,P190,c(Q56061)) (Q127623,P190,c(Q56061)) (Q152436,P190,c(Q56061)) (Q42308,P190,c(Q56061)) (Q154835,P190,c(Q56061)) (Q726287,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
['Q200747', 'P190', {'concept': 'Q56061'}] ['Q647', 'P190', {'concept': 'Q56061'}] ['Q124342', 'P190', {'concept': 'Q56061'}] ['Q127623', 'P190', {'concept': 'Q56061'}] ['Q152436', 'P190', {'concept': 'Q56061'}] ['Q42308', 'P190', {'concept': 'Q56061'}] ['Q154835', 'P190', {'concept': 'Q56061'}] ['Q726287', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { VALUES ( ?d ) { ( resource:Q200747 ) ( resource:Q647 ) ( resource:Q124342 ) } . ?d property:P190 ?f . ?f rdf:type ontology:Q56061 }
Wakayama Rennes Montemarciano Vantaa Kfar Saba Kharkiv Mogilyov Ashtabula
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Wakayama', 'sister city', {'concept': 'administrative territorial entity'}] ['Rennes', 'sister city', {'concept': 'administrative territorial entity'}] ['Montemarciano', 'sister city', {'concept': 'administrative territorial entity'}] ['Vantaa', 'sister city', {'concept': 'administrative territorial entity'}] ['Kfar Saba', 'sister city', {'concept': 'administrative territorial entity'}] ['Kharkiv', 'sister city', {'concept': 'administrative territorial entity'}] ['Mogilyov', 'sister city', {'concept': 'administrative territorial entity'}] ['Ashtabula', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { VALUES ( ?d ) { ( resource:Wakayama ) ( resource:Rennes ) ( resource:Montemarciano ) } . ?d property:sister_city ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649 Q270 Q2090
SYSTEM
Moscow, Warsaw, Nuremberg
Q49256 Q118958 Q36647 Q49218 Q134672 Q35493 Q216978 Q27007 Q226 Q153380 Q623557 Q191805 Q3070 Q1555 Q690 Q487999 Q814900 Q171632 Q80021 Q649 Q648 Q6506 Q201051 Q93338 Q3323 Q4115712 Q891 Q26175 Q2090 Q173338 Q270 Q172415 Q1891 Q582 Q180131 Q1957 Q485496 Q27007 Q167394 Q2801 Q776965 Q136834 Q27007
(Q200747,P190,c(Q56061)) (Q647,P190,c(Q56061)) (Q124342,P190,c(Q56061)) (Q127623,P190,c(Q56061)) (Q152436,P190,c(Q56061)) (Q42308,P190,c(Q56061)) (Q154835,P190,c(Q56061)) (Q726287,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[ANSWERS]
['Q200747', 'P190', {'concept': 'Q56061'}] ['Q647', 'P190', {'concept': 'Q56061'}] ['Q124342', 'P190', {'concept': 'Q56061'}] ['Q127623', 'P190', {'concept': 'Q56061'}] ['Q152436', 'P190', {'concept': 'Q56061'}] ['Q42308', 'P190', {'concept': 'Q56061'}] ['Q154835', 'P190', {'concept': 'Q56061'}] ['Q726287', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { VALUES ( ?d ) { ( resource:Q200747 ) ( resource:Q647 ) ( resource:Q124342 ) } . ?d property:P190 ?f . ?f rdf:type ontology:Q56061 }
Bakersfield Leuven Cork Rochester Exeter Almaty Sinj Bardejov Nuuk Kineshma Seyðisfjörður Mladá Boleslav San José Guatemala City Delft Gainesville Beit Jann Maracaibo Daugavpils Moscow Lille Varna Rishon LeZion Gaziantep Belgorod Kaunas Nizhny Novgorod Trnava Nuremberg Cetinje Warsaw Kutaisi Bologna Villeurbanne Gabrovo Vologda Shymkent Bardejov Kragujevac Bryansk Klaipėda Zvenigorod Bardejov
Moscow Warsaw Nuremberg
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Wakayama', 'sister city', {'concept': 'administrative territorial entity'}] ['Rennes', 'sister city', {'concept': 'administrative territorial entity'}] ['Montemarciano', 'sister city', {'concept': 'administrative territorial entity'}] ['Vantaa', 'sister city', {'concept': 'administrative territorial entity'}] ['Kfar Saba', 'sister city', {'concept': 'administrative territorial entity'}] ['Kharkiv', 'sister city', {'concept': 'administrative territorial entity'}] ['Mogilyov', 'sister city', {'concept': 'administrative territorial entity'}] ['Ashtabula', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { VALUES ( ?d ) { ( resource:Wakayama ) ( resource:Rennes ) ( resource:Montemarciano ) } . ?d property:sister_city ?f . ?f rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q270
P1001
Q12737077
USER
Which occupation presides the jurisdiction over that administrative territory ?
(c(Q12737077),P1001,Q270)
action filter_type
action find_reverse
entity Q270
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q270']
SELECT DISTINCT ?h WHERE { ?h property:P1001 resource:Q270 . ?h rdf:type ontology:Q12737077 }
Warsaw
action filter_type
action find_reverse
entity Warsaw
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Warsaw']
SELECT DISTINCT ?h WHERE { ?h property:applies_to_jurisdiction resource:Warsaw . ?h rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q2090
SYSTEM
Did you mean Nuremberg ?
Q649 Q270 Q2090
(c(Q12737077),P1001,Q649) (c(Q12737077),P1001,Q270) (c(Q12737077),P1001,Q2090)
[ANSWER]
[{'concept': 'Q12737077'}, 'P1001', 'Q649'] [{'concept': 'Q12737077'}, 'P1001', 'Q270'] [{'concept': 'Q12737077'}, 'P1001', 'Q2090']
SELECT DISTINCT ?h WHERE { ?h property:P1001 resource:Q270 . ?h rdf:type ontology:Q12737077 }
Moscow Warsaw Nuremberg
Did you mean Nuremberg ?
Nuremberg
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Moscow'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Warsaw'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Nuremberg']
SELECT DISTINCT ?h WHERE { ?h property:applies_to_jurisdiction resource:Warsaw . ?h rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Warsaw. Could you tell me the answer for that?
(c(Q12737077),P1001,Q270)
Q270
[{'concept': 'Q12737077'}, 'P1001', 'Q270']
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Warsaw']
[]
Q6627774
SYSTEM
Mayor of Warsaw
Q6627774
(c(Q12737077),P1001,Q270)
action filter_type
action find_reverse
entity Q270
relation P1001
type Q12737077
[ANSWER]
[{'concept': 'Q12737077'}, 'P1001', 'Q270']
SELECT DISTINCT ?h WHERE { ?h property:P1001 resource:Q270 . ?h rdf:type ontology:Q12737077 }
Mayor of Warsaw
Mayor of Warsaw
action filter_type
action find_reverse
entity Warsaw
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Warsaw']
SELECT DISTINCT ?h WHERE { ?h property:applies_to_jurisdiction resource:Warsaw . ?h rdf:type ontology:occupation }
[]