Simple Question (Direct)
Simple Question
Q2791043
P21
Q290
USER
What is the sex of Prince George Valdemar of Denmark ?
(Q2791043,P21,c(Q290))
action filter_type
action find
entity Q2791043
relation P21
type Q290
['Q2791043', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q2791043 property:P21 ?q . ?q rdf:type ontology:Q290 }
Prince George Valdemar of Denmark
action filter_type
action find
entity Prince George Valdemar of Denmark
relation gender
type sex
['Prince George Valdemar of Denmark', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Prince_George_Valdemar_of_Denmark property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2791043,P21,c(Q290))
action filter_type
action find
entity Q2791043
relation P21
type Q290
The sex of Prince George Valdemar of Denmark is the [ANSWER]
['Q2791043', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q2791043 property:P21 ?q . ?q rdf:type ontology:Q290 }
male
The sex of Prince George Valdemar of Denmark is the male
male
action filter_type
action find
entity Prince George Valdemar of Denmark
relation gender
type sex
['Prince George Valdemar of Denmark', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Prince_George_Valdemar_of_Denmark property:gender ?q . ?q rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2791043
P25
Q502895
USER
Who was the mom of Prince George Valdemar of Denmark ?
(Q2791043,P25,c(Q502895))
action filter_type
action find
entity Q2791043
relation P25
type Q502895
['Q2791043', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q2791043 property:P25 ?w . ?w rdf:type ontology:Q502895 }
Prince George Valdemar of Denmark
action filter_type
action find
entity Prince George Valdemar of Denmark
relation mother
type common name
['Prince George Valdemar of Denmark', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Prince_George_Valdemar_of_Denmark property:mother ?w . ?w rdf:type ontology:common_name }
[]
common name
Q622833
SYSTEM
Princess Margaretha of Sweden
Q622833
(Q2791043,P25,c(Q502895))
action filter_type
action find
entity Q2791043
relation P25
type Q502895
The mom of Prince George Valdemar of Denmark was the [ANSWER]
['Q2791043', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q2791043 property:P25 ?w . ?w rdf:type ontology:Q502895 }
Princess Margaretha of Sweden
The mom of Prince George Valdemar of Denmark was the Princess Margaretha of Sweden
Princess Margaretha of Sweden
action filter_type
action find
entity Prince George Valdemar of Denmark
relation mother
type common name
['Prince George Valdemar of Denmark', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Prince_George_Valdemar_of_Denmark property:mother ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q622833
P9
Q502895
USER
Which people have that one as their sibling ?
(c(Q502895),P9,Q622833)
action filter_type
action find_reverse
entity Q622833
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q622833']
SELECT DISTINCT ?s WHERE { ?s property:P9 resource:Q622833 . ?s rdf:type ontology:Q502895 }
Princess Margaretha of Sweden
action filter_type
action find_reverse
entity Princess Margaretha of Sweden
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Princess Margaretha of Sweden']
SELECT DISTINCT ?s WHERE { ?s property:sister resource:Princess_Margaretha_of_Sweden . ?s rdf:type ontology:common_name }
[]
common name
Q230238 Q1883487 Q231281
SYSTEM
Astrid of Sweden, Prince Carl Bernadotte, Princess Märtha of Sweden
Q230238 Q1883487 Q231281
(c(Q502895),P9,Q622833)
action filter_type
action find_reverse
entity Q622833
relation P9
type Q502895
[ANSWERS] have that one as their sibling
[{'concept': 'Q502895'}, 'P9', 'Q622833']
SELECT DISTINCT ?s WHERE { ?s property:P9 resource:Q622833 . ?s rdf:type ontology:Q502895 }
Astrid of Sweden Prince Carl Bernadotte Princess Märtha of Sweden
Astrid of Sweden, Prince Carl Bernadotte and Princess Märtha of Sweden have that one as their sibling
Astrid of Sweden Prince Carl Bernadotte Princess Märtha of Sweden
action filter_type
action find_reverse
entity Princess Margaretha of Sweden
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Princess Margaretha of Sweden']
SELECT DISTINCT ?s WHERE { ?s property:sister resource:Princess_Margaretha_of_Sweden . ?s rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q231281
P40
Q502895
USER
Which people have that one as an offspring ?
(c(Q502895),P40,Q231281)
action filter_type
action find_reverse
entity Q231281
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q231281']
SELECT DISTINCT ?b WHERE { ?b property:P40 resource:Q231281 . ?b rdf:type ontology:Q502895 }
Princess Märtha of Sweden
action filter_type
action find_reverse
entity Princess Märtha of Sweden
relation child
type common name
[{'concept': 'common name'}, 'child', 'Princess Märtha of Sweden']
SELECT DISTINCT ?b WHERE { ?b property:child resource:Princess_Märtha_of_Sweden . ?b rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q1883487
SYSTEM
Did you mean Prince Carl Bernadotte ?
Q230238 Q1883487 Q231281
(c(Q502895),P40,Q230238) (c(Q502895),P40,Q1883487) (c(Q502895),P40,Q231281)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q230238'] [{'concept': 'Q502895'}, 'P40', 'Q1883487'] [{'concept': 'Q502895'}, 'P40', 'Q231281']
SELECT DISTINCT ?b WHERE { ?b property:P40 resource:Q231281 . ?b rdf:type ontology:Q502895 }
Astrid of Sweden Prince Carl Bernadotte Princess Märtha of Sweden
Did you mean Prince Carl Bernadotte ?
Prince Carl Bernadotte
[{'concept': 'common name'}, 'child', 'Astrid of Sweden'] [{'concept': 'common name'}, 'child', 'Prince Carl Bernadotte'] [{'concept': 'common name'}, 'child', 'Princess Märtha of Sweden']
SELECT DISTINCT ?b WHERE { ?b property:child resource:Princess_Märtha_of_Sweden . ?b rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Princess Märtha of Sweden. Could you tell me the answer for that?
(c(Q502895),P40,Q231281)
Q231281
[{'concept': 'Q502895'}, 'P40', 'Q231281']
[{'concept': 'common name'}, 'child', 'Princess Märtha of Sweden']
[]
Q234033 Q793616
SYSTEM
Princess Ingeborg of Denmark, Prince Carl, Duke of Västergötland
Q234033 Q793616
(c(Q502895),P40,Q231281)
action filter_type
action find_reverse
entity Q231281
relation P40
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P40', 'Q231281']
SELECT DISTINCT ?b WHERE { ?b property:P40 resource:Q231281 . ?b rdf:type ontology:Q502895 }
Princess Ingeborg of Denmark Prince Carl, Duke of Västergötland
Princess Ingeborg of Denmark and Prince Carl, Duke of Västergötland have that one as an offspring
Princess Ingeborg of Denmark Prince Carl, Duke of Västergötland
action filter_type
action find_reverse
entity Princess Märtha of Sweden
relation child
type common name
[{'concept': 'common name'}, 'child', 'Princess Märtha of Sweden']
SELECT DISTINCT ?b WHERE { ?b property:child resource:Princess_Märtha_of_Sweden . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can approximately 3436 people perform with ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3436
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?b = 3436 ) . { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?b ) WHERE { ?c rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 . ?k property:P1303 ?c } GROUP BY ?c } }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3436
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?b = 3436 ) . { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?b ) WHERE { ?c rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name . ?k property:instrument ?c } GROUP BY ?c } }
[]
musical instrument common name
Q8355 Q1444 Q128309
SYSTEM
violin, organ, drum kit
Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3436
The [ANSWERS] can approximately 3436 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?b = 3436 ) . { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?b ) WHERE { ?c rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 . ?k property:P1303 ?c } GROUP BY ?c } }
violin organ drum kit
The violin, organ and drum kit can approximately 3436 people perform with
violin organ drum kit
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3436
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { FILTER ( ?b = 3436 ) . { SELECT DISTINCT ?c ( COUNT ( ?k ) AS ?b ) WHERE { ?c rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name . ?k property:instrument ?c } GROUP BY ?c } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P180
Q3305213 Q838948
USER
How many paintings and works of art demonstrate that musical instrument ?
(c(Q3305213),P180,Q8355) (c(Q838948),P180,Q8355) (c(Q3305213),P180,Q8355) (c(Q838948),P180,Q8355) (c(Q3305213),P180,Q1444) (c(Q838948),P180,Q1444) (c(Q3305213),P180,Q128309) (c(Q838948),P180,Q128309)
[{'concept': 'Q3305213'}, 'P180', 'Q8355'] [{'concept': 'Q838948'}, 'P180', 'Q8355'] [{'concept': 'Q3305213'}, 'P180', 'Q8355'] [{'concept': 'Q838948'}, 'P180', 'Q8355'] [{'concept': 'Q3305213'}, 'P180', 'Q1444'] [{'concept': 'Q838948'}, 'P180', 'Q1444'] [{'concept': 'Q3305213'}, 'P180', 'Q128309'] [{'concept': 'Q838948'}, 'P180', 'Q128309']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P180 resource:Q21043724 } UNION { ?y property:P180 resource:Q21043724 } UNION { ?z property:P180 resource:Q21043724 } UNION { ?y property:P180 resource:Q21043724 } UNION { ?z property:P180 resource:Q1444 } UNION { ?y property:P180 resource:Q1444 } UNION { ?z property:P180 resource:Q128309 } UNION { ?y property:P180 resource:Q128309 } } . ?z rdf:type ontology:Q19925980 . ?y rdf:type ontology:Q838948 }
[{'concept': 'painting'}, 'depicts', 'violin'] [{'concept': 'work of art'}, 'depicts', 'violin'] [{'concept': 'painting'}, 'depicts', 'violin'] [{'concept': 'work of art'}, 'depicts', 'violin'] [{'concept': 'painting'}, 'depicts', 'organ'] [{'concept': 'work of art'}, 'depicts', 'organ'] [{'concept': 'painting'}, 'depicts', 'drum kit'] [{'concept': 'work of art'}, 'depicts', 'drum kit']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:depicts resource:violin } UNION { ?y property:depicts resource:violin } UNION { ?z property:depicts resource:violin } UNION { ?y property:depicts resource:violin } UNION { ?z property:depicts resource:organ } UNION { ?y property:depicts resource:organ } UNION { ?z property:depicts resource:drum_kit } UNION { ?y property:depicts resource:drum_kit } } . ?z rdf:type ontology:painting . ?y rdf:type ontology:work_of_art }
[]
painting work of art
Quantitative|Count|Mult. entity type|Clarification
Q8355
SYSTEM
Did you mean violin ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P180 resource:Q21043724 } UNION { ?y property:P180 resource:Q21043724 } UNION { ?z property:P180 resource:Q21043724 } UNION { ?y property:P180 resource:Q21043724 } UNION { ?z property:P180 resource:Q1444 } UNION { ?y property:P180 resource:Q1444 } UNION { ?z property:P180 resource:Q128309 } UNION { ?y property:P180 resource:Q128309 } } . ?z rdf:type ontology:Q19925980 . ?y rdf:type ontology:Q838948 }
Did you mean violin ?
violin
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:depicts resource:violin } UNION { ?y property:depicts resource:violin } UNION { ?z property:depicts resource:violin } UNION { ?y property:depicts resource:violin } UNION { ?z property:depicts resource:organ } UNION { ?y property:depicts resource:organ } UNION { ?z property:depicts resource:drum_kit } UNION { ?y property:depicts resource:drum_kit } } . ?z rdf:type ontology:painting . ?y rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q3305213),P180,Q8355) (c(Q838948),P180,Q8355) (c(Q3305213),P180,Q8355) (c(Q838948),P180,Q8355) (c(Q3305213),P180,Q1444) (c(Q838948),P180,Q1444) (c(Q3305213),P180,Q128309) (c(Q838948),P180,Q128309)
[{'concept': 'Q3305213'}, 'P180', 'Q8355'] [{'concept': 'Q838948'}, 'P180', 'Q8355'] [{'concept': 'Q3305213'}, 'P180', 'Q8355'] [{'concept': 'Q838948'}, 'P180', 'Q8355'] [{'concept': 'Q3305213'}, 'P180', 'Q1444'] [{'concept': 'Q838948'}, 'P180', 'Q1444'] [{'concept': 'Q3305213'}, 'P180', 'Q128309'] [{'concept': 'Q838948'}, 'P180', 'Q128309']
[{'concept': 'painting'}, 'depicts', 'violin'] [{'concept': 'work of art'}, 'depicts', 'violin'] [{'concept': 'painting'}, 'depicts', 'violin'] [{'concept': 'work of art'}, 'depicts', 'violin'] [{'concept': 'painting'}, 'depicts', 'organ'] [{'concept': 'work of art'}, 'depicts', 'organ'] [{'concept': 'painting'}, 'depicts', 'drum kit'] [{'concept': 'work of art'}, 'depicts', 'drum kit']
[]
SYSTEM
3 paintings and 2 works of art
Q19005808 Q24090417 Q19357201 Q22570045 Q25540861
(c(Q3305213),P180,Q8355) (c(Q838948),P180,Q8355) (c(Q3305213),P180,Q8355) (c(Q838948),P180,Q8355) (c(Q3305213),P180,Q1444) (c(Q838948),P180,Q1444) (c(Q3305213),P180,Q128309) (c(Q838948),P180,Q128309)
[ANSWER]
[{'concept': 'Q3305213'}, 'P180', 'Q8355'] [{'concept': 'Q838948'}, 'P180', 'Q8355'] [{'concept': 'Q3305213'}, 'P180', 'Q8355'] [{'concept': 'Q838948'}, 'P180', 'Q8355'] [{'concept': 'Q3305213'}, 'P180', 'Q1444'] [{'concept': 'Q838948'}, 'P180', 'Q1444'] [{'concept': 'Q3305213'}, 'P180', 'Q128309'] [{'concept': 'Q838948'}, 'P180', 'Q128309']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P180 resource:Q21043724 } UNION { ?y property:P180 resource:Q21043724 } UNION { ?z property:P180 resource:Q21043724 } UNION { ?y property:P180 resource:Q21043724 } UNION { ?z property:P180 resource:Q1444 } UNION { ?y property:P180 resource:Q1444 } UNION { ?z property:P180 resource:Q128309 } UNION { ?y property:P180 resource:Q128309 } } . ?z rdf:type ontology:Q19925980 . ?y rdf:type ontology:Q838948 }
Attributes of Music Sleep that knits up the ravell'd sleeve of care Orpheus Picture clock with Alster panorama L'Ouïe
3 paintings and 2 works of art
[{'concept': 'painting'}, 'depicts', 'violin'] [{'concept': 'work of art'}, 'depicts', 'violin'] [{'concept': 'painting'}, 'depicts', 'violin'] [{'concept': 'work of art'}, 'depicts', 'violin'] [{'concept': 'painting'}, 'depicts', 'organ'] [{'concept': 'work of art'}, 'depicts', 'organ'] [{'concept': 'painting'}, 'depicts', 'drum kit'] [{'concept': 'work of art'}, 'depicts', 'drum kit']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:depicts resource:violin } UNION { ?y property:depicts resource:violin } UNION { ?z property:depicts resource:violin } UNION { ?y property:depicts resource:violin } UNION { ?z property:depicts resource:organ } UNION { ?y property:depicts resource:organ } UNION { ?z property:depicts resource:drum_kit } UNION { ?y property:depicts resource:drum_kit } } . ?z rdf:type ontology:painting . ?y rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q793616
P26
Q502895
USER
Who is the spouse of Prince Carl, Duke of Västergötland ?
(c(Q502895),P26,Q793616)
action filter_type
action find
entity Q793616
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q793616']
SELECT DISTINCT ?j WHERE { resource:Q793616 property:P26 ?j . ?j rdf:type ontology:Q502895 }
Prince Carl, Duke of Västergötland
action filter_type
action find
entity Prince Carl, Duke of Västergötland
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Prince Carl, Duke of Västergötland']
SELECT DISTINCT ?j WHERE { resource:Prince_Carl,_Duke_of_Västergötland property:spouse ?j . ?j rdf:type ontology:common_name }
[]
common name
Q234033
SYSTEM
Princess Ingeborg of Denmark
Q234033
(c(Q502895),P26,Q793616)
action filter_type
action find
entity Q793616
relation P26
type Q502895
The spouse of Prince Carl , Duke of Västergötland is the [ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q793616']
SELECT DISTINCT ?j WHERE { resource:Q793616 property:P26 ?j . ?j rdf:type ontology:Q502895 }
Princess Ingeborg of Denmark
The spouse of Prince Carl , Duke of Västergötland is the Princess Ingeborg of Denmark
Princess Ingeborg of Denmark
action filter_type
action find
entity Prince Carl, Duke of Västergötland
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Prince Carl, Duke of Västergötland']
SELECT DISTINCT ?j WHERE { resource:Prince_Carl,_Duke_of_Västergötland property:spouse ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q234033
P53
Q8436
USER
What dynasty does that person belong to ?
(Q234033,P53,c(Q8436))
action filter_type
action find
entity Q234033
relation P53
type Q8436
['Q234033', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?u WHERE { resource:Q234033 property:P53 ?u . ?u rdf:type ontology:Q8436 }
Princess Ingeborg of Denmark
action filter_type
action find
entity Princess Ingeborg of Denmark
relation noble family
type family
['Princess Ingeborg of Denmark', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?u WHERE { resource:Princess_Ingeborg_of_Denmark property:noble_family ?u . ?u rdf:type ontology:family }
[]
family
Q155616
SYSTEM
House of Glücksburg
Q155616
(Q234033,P53,c(Q8436))
action filter_type
action find
entity Q234033
relation P53
type Q8436
That person belongs to [ANSWER]
['Q234033', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?u WHERE { resource:Q234033 property:P53 ?u . ?u rdf:type ontology:Q8436 }
House of Glücksburg
That person belongs to House of Glücksburg
House of Glücksburg
action filter_type
action find
entity Princess Ingeborg of Denmark
relation noble family
type family
['Princess Ingeborg of Denmark', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?u WHERE { resource:Princess_Ingeborg_of_Denmark property:noble_family ?u . ?u rdf:type ontology:family }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2169506
Q8436
USER
And also tell me about Hōjō Tokiatsu?
(Q2169506,P53,c(Q8436))
action filter_type
action find
entity Q2169506
relation P53
type Q8436
['Q2169506', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q8436 . resource:Q2169506 property:P53 ?d }
Hōjō Tokiatsu
action filter_type
action find
entity Hōjō Tokiatsu
relation noble family
type family
['Hōjō Tokiatsu', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:family . resource:Hōjō_Tokiatsu property:noble_family ?d }
[]
family
Q834364
SYSTEM
Hōjō clan
Q834364
(Q2169506,P53,c(Q8436))
action filter_type
action find
entity Q2169506
relation P53
type Q8436
[ANSWER]
['Q2169506', 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q8436 . resource:Q2169506 property:P53 ?d }
Hōjō clan
Hōjō clan
action filter_type
action find
entity Hōjō Tokiatsu
relation noble family
type family
['Hōjō Tokiatsu', 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:family . resource:Hōjō_Tokiatsu property:noble_family ?d }
[]