Simple Question (Direct)
Simple Question
Q329555
P9
Q502895
USER
Who are Maddalena Visconti a sibling of ?
(Q329555,P9,c(Q502895))
action filter_type
action find
entity Q329555
relation P9
type Q502895
['Q329555', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q329555 property:P9 ?u . ?u rdf:type ontology:Q502895 }
Maddalena Visconti
action filter_type
action find
entity Maddalena Visconti
relation sister
type common name
['Maddalena Visconti', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Maddalena_Visconti property:sister ?u . ?u rdf:type ontology:common_name }
[]
common name
Q2464997 Q273018 Q271801
SYSTEM
Caterina Visconti, Antonia Visconti, Taddea Visconti
Q1941886 Q3838490 Q273018 Q271801 Q2464997 Q943180 Q2726556 Q271827 Q777858
(Q329555,P9,c(Q502895))
action filter_type
action find
entity Q329555
relation P9
type Q502895
[ANSWERS] are a sibling of Maddalena Visconti
['Q329555', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q329555 property:P9 ?u . ?u rdf:type ontology:Q502895 }
Elisabetta Visconti Lucia Visconti Antonia Visconti Taddea Visconti Caterina Visconti Valentina Visconti, Queen of Cyprus Agnese Visconti Viridis Visconti Anglesia Visconti
Caterina Visconti, Antonia Visconti and Taddea Visconti are a sibling of Maddalena Visconti
Caterina Visconti Antonia Visconti Taddea Visconti
action filter_type
action find
entity Maddalena Visconti
relation sister
type common name
['Maddalena Visconti', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Maddalena_Visconti property:sister ?u . ?u rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q329555
P25
Q502895
USER
Which people have Maddalena Visconti as a parent ?
(c(Q502895),P25,Q329555)
action filter_type
action find_reverse
entity Q329555
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q329555']
SELECT DISTINCT ?q WHERE { ?q property:P25 resource:Q329555 . ?q rdf:type ontology:Q502895 }
Maddalena Visconti
action filter_type
action find_reverse
entity Maddalena Visconti
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Maddalena Visconti']
SELECT DISTINCT ?q WHERE { ?q property:mother resource:Maddalena_Visconti . ?q rdf:type ontology:common_name }
[]
common name
Q62216 Q71173
SYSTEM
Henry XVI, Duke of Bavaria, Elisabeth of Bavaria, Electress of Brandenburg
Q62216 Q71173
(c(Q502895),P25,Q329555)
action filter_type
action find_reverse
entity Q329555
relation P25
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P25', 'Q329555']
SELECT DISTINCT ?q WHERE { ?q property:P25 resource:Q329555 . ?q rdf:type ontology:Q502895 }
Henry XVI, Duke of Bavaria Elisabeth of Bavaria, Electress of Brandenburg
Henry XVI, Duke of Bavaria and Elisabeth of Bavaria, Electress of Brandenburg have Maddalena Visconti as a parent
Henry XVI, Duke of Bavaria Elisabeth of Bavaria, Electress of Brandenburg
action filter_type
action find_reverse
entity Maddalena Visconti
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Maddalena Visconti']
SELECT DISTINCT ?q WHERE { ?q property:mother resource:Maddalena_Visconti . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q62216
P22
Q502895
USER
Which people have Henry XVI, Duke of Bavaria as dad ?
(c(Q502895),P22,Q62216)
action filter_type
action find_reverse
entity Q62216
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q62216']
SELECT DISTINCT ?w WHERE { ?w property:P22 resource:Q62216 . ?w rdf:type ontology:Q502895 }
Henry XVI, Duke of Bavaria
action filter_type
action find_reverse
entity Henry XVI, Duke of Bavaria
relation father
type common name
[{'concept': 'common name'}, 'father', 'Henry XVI, Duke of Bavaria']
SELECT DISTINCT ?w WHERE { ?w property:father resource:Henry_XVI,_Duke_of_Bavaria . ?w rdf:type ontology:common_name }
[]
common name
Q3723280 Q61974 Q3766302
SYSTEM
Elisabeth of Bavaria-Landshut, Louis IX, Duke of Bavaria, Johanna of Bavaria-Landshut
Q3723280 Q61974 Q3766302
(c(Q502895),P22,Q62216)
action filter_type
action find_reverse
entity Q62216
relation P22
type Q502895
[ANSWERS] have Henry XVI, Duke of Bavaria as dad
[{'concept': 'Q502895'}, 'P22', 'Q62216']
SELECT DISTINCT ?w WHERE { ?w property:P22 resource:Q62216 . ?w rdf:type ontology:Q502895 }
Elisabeth of Bavaria-Landshut Louis IX, Duke of Bavaria Johanna of Bavaria-Landshut
Elisabeth of Bavaria-Landshut, Louis IX, Duke of Bavaria and Johanna of Bavaria-Landshut have Henry XVI, Duke of Bavaria as dad
Elisabeth of Bavaria-Landshut Louis IX, Duke of Bavaria Johanna of Bavaria-Landshut
action filter_type
action find_reverse
entity Henry XVI, Duke of Bavaria
relation father
type common name
[{'concept': 'common name'}, 'father', 'Henry XVI, Duke of Bavaria']
SELECT DISTINCT ?w WHERE { ?w property:father resource:Henry_XVI,_Duke_of_Bavaria . ?w rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3766302
P21
Q290
USER
Which sex does that person possess ?
(Q3766302,P21,c(Q290))
action filter_type
action find
entity Q3766302
relation P21
type Q290
['Q3766302', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q3766302 property:P21 ?r . ?r rdf:type ontology:Q290 }
Johanna of Bavaria-Landshut
action filter_type
action find
entity Johanna of Bavaria-Landshut
relation gender
type sex
['Johanna of Bavaria-Landshut', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Johanna_of_Bavaria-Landshut property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q61974
SYSTEM
Did you mean Louis IX, Duke of Bavaria ?
Q3723280 Q61974 Q3766302
(Q3723280,P21,c(Q290)) (Q61974,P21,c(Q290)) (Q3766302,P21,c(Q290))
[ANSWER]
['Q3723280', 'P21', {'concept': 'Q290'}] ['Q61974', 'P21', {'concept': 'Q290'}] ['Q3766302', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q3766302 property:P21 ?r . ?r rdf:type ontology:Q290 }
Elisabeth of Bavaria-Landshut Louis IX, Duke of Bavaria Johanna of Bavaria-Landshut
Did you mean Louis IX, Duke of Bavaria ?
Louis IX, Duke of Bavaria
['Elisabeth of Bavaria-Landshut', 'gender', {'concept': 'sex'}] ['Louis IX, Duke of Bavaria', 'gender', {'concept': 'sex'}] ['Johanna of Bavaria-Landshut', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Johanna_of_Bavaria-Landshut property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
No, I meant Johanna of Bavaria-Landshut. Could you tell me the answer for that?
(Q3766302,P21,c(Q290))
Q3766302
['Q3766302', 'P21', {'concept': 'Q290'}]
['Johanna of Bavaria-Landshut', 'gender', {'concept': 'sex'}]
[]
Q6581072
SYSTEM
female
Q6581072
(Q3766302,P21,c(Q290))
action filter_type
action find
entity Q3766302
relation P21
type Q290
That person possesses the [ANSWER]
['Q3766302', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q3766302 property:P21 ?r . ?r rdf:type ontology:Q290 }
female
That person possesses the female
female
action filter_type
action find
entity Johanna of Bavaria-Landshut
relation gender
type sex
['Johanna of Bavaria-Landshut', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Johanna_of_Bavaria-Landshut property:gender ?r . ?r rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can exactly 2 people perform with ?
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?p ) WHERE { ?t property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?p = 2 ) }
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?p ) WHERE { ?t property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?p = 2 ) }
[]
musical instrument common name
Q862501 Q201129 Q424017
SYSTEM
ondes Martenot, lyre, acoustic bass guitar
Q201129 Q424017 Q3574843 Q182718 Q862501 Q537750 Q1300012 Q483994
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?p ) WHERE { ?t property:P1303 ?x . ?x rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?x } . FILTER ( ?p = 2 ) }
lyre acoustic bass guitar tonbak Nyckelharpa ondes Martenot Djembe toy piano Kazoo
Which musical instruments can exactly 2 people perform with
ondes Martenot lyre acoustic bass guitar
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?p ) WHERE { ?t property:instrument ?x . ?x rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?x } . FILTER ( ?p = 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P941
Q502895 Q340169 Q15416
USER
Which people were max number of medias or television programs inspired by ?
(c(Q340169)|c(Q15416),P941,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q340169
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15416
[[{'concept': 'Q340169'}, {'concept': 'Q15416'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?h ) { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?b ) WHERE { { ?k property:P941 ?y . ?y rdf:type ontology:Q502895 . ?k rdf:type ontology:Q340169 } UNION { ?k property:P941 ?y . ?k rdf:type ontology:Q15416 . ?y rdf:type ontology:Q502895 } } GROUP BY ?y } } . { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?t ) WHERE { ?e rdf:type ?q . VALUES ( ?q ) { ( ontology:Q15416 ) ( ontology:Q340169 ) } } GROUP BY ?a } . FILTER ( ?t = ?h ) }
action argmax
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type media
action find_reverse_tuple_counts
relation inspired by
type common name
type television program
[[{'concept': 'media'}, {'concept': 'television program'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?h ) { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?b ) WHERE { { ?k property:inspired_by ?y . ?y rdf:type ontology:common_name . ?k rdf:type ontology:media } UNION { ?k property:inspired_by ?y . ?k rdf:type ontology:television_program . ?y rdf:type ontology:common_name } } GROUP BY ?y } } . { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?t ) WHERE { ?e rdf:type ?q . VALUES ( ?q ) { ( ontology:television_program ) ( ontology:media ) } } GROUP BY ?a } . FILTER ( ?t = ?h ) }
[]
common name media television program
Q183458 Q5675905
SYSTEM
Andrea del Verrocchio, Andrés López Muñoz
Q183458 Q5675905
(c(Q340169)|c(Q15416),P941,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q340169
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15416
Max number of medias or television programs by were inspired by [ANSWERS]
[[{'concept': 'Q340169'}, {'concept': 'Q15416'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?h ) { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?b ) WHERE { { ?k property:P941 ?y . ?y rdf:type ontology:Q502895 . ?k rdf:type ontology:Q340169 } UNION { ?k property:P941 ?y . ?k rdf:type ontology:Q15416 . ?y rdf:type ontology:Q502895 } } GROUP BY ?y } } . { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?t ) WHERE { ?e rdf:type ?q . VALUES ( ?q ) { ( ontology:Q15416 ) ( ontology:Q340169 ) } } GROUP BY ?a } . FILTER ( ?t = ?h ) }
Andrea del Verrocchio Andrés López Muñoz
Max number of medias or television programs by were inspired by Andrea del Verrocchio and Andrés López Muñoz
Andrea del Verrocchio Andrés López Muñoz
action argmax
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type media
action find_reverse_tuple_counts
relation inspired by
type common name
type television program
[[{'concept': 'media'}, {'concept': 'television program'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?h ) { SELECT DISTINCT ?y ( COUNT ( ?k ) AS ?b ) WHERE { { ?k property:inspired_by ?y . ?y rdf:type ontology:common_name . ?k rdf:type ontology:media } UNION { ?k property:inspired_by ?y . ?k rdf:type ontology:television_program . ?y rdf:type ontology:common_name } } GROUP BY ?y } } . { SELECT DISTINCT ?a ( COUNT ( ?e ) AS ?t ) WHERE { ?e rdf:type ?q . VALUES ( ?q ) { ( ontology:television_program ) ( ontology:media ) } } GROUP BY ?a } . FILTER ( ?t = ?h ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q2464997
P9
Q502895
USER
How many people had Caterina Visconti as their sibling ?
(c(Q502895),P9,Q2464997)
action count
action filter_type
action find_reverse
entity Q2464997
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q2464997']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:P9 resource:Q2464997 . ?q rdf:type ontology:Q502895 }
Caterina Visconti
action count
action filter_type
action find_reverse
entity Caterina Visconti
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Caterina Visconti']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:sister resource:Caterina_Visconti . ?q rdf:type ontology:common_name }
[]
common name
SYSTEM
16
Q271801 Q2726556 Q943180 Q1941886 Q777858 Q442033 Q3733572 Q329555 Q3763369 Q273018 Q2132941 Q3940007 Q2842351 Q3838490 Q271827 Q2470904
(c(Q502895),P9,Q2464997)
action count
action filter_type
action find_reverse
entity Q2464997
relation P9
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P9', 'Q2464997']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:P9 resource:Q2464997 . ?q rdf:type ontology:Q502895 }
Taddea Visconti Agnese Visconti Valentina Visconti, Queen of Cyprus Elisabetta Visconti Anglesia Visconti Marco Visconti Estorre Visconti Maddalena Visconti Gianmastino Visconti Antonia Visconti Carlo Visconti di Parma Rodolfo Visconti Ambrogio Visconti Lucia Visconti Viridis Visconti Ludovico Visconti
16
action count
action filter_type
action find_reverse
entity Caterina Visconti
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Caterina Visconti']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:sister resource:Caterina_Visconti . ?q rdf:type ontology:common_name }
[]