Simple Question (Direct)
Simple Question
Q2905747
P39
Q12737077
USER
Which occupation was a position for which Blair Wilson was appointed ?
(Q2905747,P39,c(Q12737077))
action filter_type
action find
entity Q2905747
relation P39
type Q12737077
['Q2905747', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q2905747 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
Blair Wilson
action filter_type
action find
entity Blair Wilson
relation position held
type occupation
['Blair Wilson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Blair_Wilson property:position_held ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q15964890
SYSTEM
member of the House of Commons of Canada
Q15964890
(Q2905747,P39,c(Q12737077))
action filter_type
action find
entity Q2905747
relation P39
type Q12737077
A [ANSWER] was a position for which Blair Wilson was appointed
['Q2905747', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q2905747 property:P39 ?l . ?l rdf:type ontology:Q12737077 }
member of the House of Commons of Canada
A member of the House of Commons of Canada was a position for which Blair Wilson was appointed
member of the House of Commons of Canada
action filter_type
action find
entity Blair Wilson
relation position held
type occupation
['Blair Wilson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Blair_Wilson property:position_held ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2905747
P735
Q82799
USER
What is forename of Blair Wilson ?
(Q2905747,P735,c(Q82799))
action filter_type
action find
entity Q2905747
relation P735
type Q82799
['Q2905747', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { resource:Q2905747 property:P735 ?t . ?t rdf:type ontology:Q82799 }
Blair Wilson
action filter_type
action find
entity Blair Wilson
relation given name
type name
['Blair Wilson', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { resource:Blair_Wilson property:given_name ?t . ?t rdf:type ontology:name }
[]
name
Q16532835
SYSTEM
Blair
Q16532835
(Q2905747,P735,c(Q82799))
action filter_type
action find
entity Q2905747
relation P735
type Q82799
Forename of [ANSWER] Wilson is of [ANSWER]
['Q2905747', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { resource:Q2905747 property:P735 ?t . ?t rdf:type ontology:Q82799 }
Blair
Forename of Blair Wilson is of Blair
Blair
action filter_type
action find
entity Blair Wilson
relation given name
type name
['Blair Wilson', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { resource:Blair_Wilson property:given_name ?t . ?t rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2905747
P27
Q1048835
USER
Which political territory is the country of citizenship of that person ?
(Q16532835,P27,c(Q1048835))
action filter_type
action find
entity Q2905747
relation P27
type Q1048835
['Q16532835', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1048835 . resource:Q2905747 property:P27 ?v }
Blair Wilson
action filter_type
action find
entity Blair Wilson
relation country of citizenship
type political territorial entity
['Blair', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_territorial_entity . resource:Blair_Wilson property:country_of_citizenship ?v }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q16532835,P27,c(Q1048835))
action filter_type
action find
entity Q2905747
relation P27
type Q1048835
[ANSWER] is the country of citizenship of that person
['Q16532835', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q1048835 . resource:Q2905747 property:P27 ?v }
Canada
Canada is the country of citizenship of that person
Canada
action filter_type
action find
entity Blair Wilson
relation country of citizenship
type political territorial entity
['Blair', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_territorial_entity . resource:Blair_Wilson property:country_of_citizenship ?v }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1000
P530
Q1048835 Q1048835 Q15617994
USER
How many political territories holds diplomatic relationship with less number of political territories or administrative territories than Gabon ?
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action count
action less
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q1000
relation P530
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { ?t property:P530 resource:Q1000 . { ?t rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } } } . FILTER ( ?l < ?d ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?l ) WHERE { { ?i property:P530 ?u . ?i rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q1048835 } UNION { ?i property:P530 ?u . ?u rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } } GROUP BY ?u } }
Gabon
action count
action less
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Gabon
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { ?t property:diplomatic_relation resource:Gabon . { ?t rdf:type ?w . VALUES ( ?w ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } } } . FILTER ( ?l < ?d ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?l ) WHERE { { ?i property:diplomatic_relation ?u . ?i rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:political_territorial_entity } UNION { ?i property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?u } }
[]
political territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q685 Q691
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action count
action less
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q1000
relation P530
type Q1048835
type Q15617994
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { ?t property:P530 resource:Q1000 . { ?t rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } } } . FILTER ( ?l < ?d ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?l ) WHERE { { ?i property:P530 ?u . ?i rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q1048835 } UNION { ?i property:P530 ?u . ?u rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } } GROUP BY ?u } }
Solomon Islands Papua New Guinea
2
action count
action less
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Gabon
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { ?t property:diplomatic_relation resource:Gabon . { ?t rdf:type ?w . VALUES ( ?w ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } } } . FILTER ( ?l < ?d ) . { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?l ) WHERE { { ?i property:diplomatic_relation ?u . ?i rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:political_territorial_entity } UNION { ?i property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?u } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q35
P530
Q1048835 Q1048835 Q15617994
USER
And also tell me about Denmark?
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action count
action less
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q35
relation P530
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?s WHERE { { ?h property:P530 ?s . ?h rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 } UNION { ?h property:P530 ?s . ?h rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:P530 resource:Q35 . { VALUES ( ?r ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?l rdf:type ?r } } } . FILTER ( ?z < ?a ) }
Denmark
action count
action less
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Denmark
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?s WHERE { { ?h property:diplomatic_relation ?s . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity } UNION { ?h property:diplomatic_relation ?s . ?h rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:diplomatic_relation resource:Denmark . { VALUES ( ?r ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?l rdf:type ?r } } } . FILTER ( ?z < ?a ) }
[]
political territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
8
Q1000 Q781 Q778 Q769 Q685 Q691 Q664 Q766
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action count
action less
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q35
relation P530
type Q1048835
type Q15617994
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?s WHERE { { ?h property:P530 ?s . ?h rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q1048835 } UNION { ?h property:P530 ?s . ?h rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q1048835 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:P530 resource:Q35 . { VALUES ( ?r ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?l rdf:type ?r } } } . FILTER ( ?z < ?a ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea New Zealand Jamaica
8
action count
action less
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Denmark
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?z ) ?s WHERE { { ?h property:diplomatic_relation ?s . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:political_territorial_entity } UNION { ?h property:diplomatic_relation ?s . ?h rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:political_territorial_entity } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?a ) WHERE { ?l property:diplomatic_relation resource:Denmark . { VALUES ( ?r ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?l rdf:type ?r } } } . FILTER ( ?z < ?a ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12006101 Q2905747
P102
Q7210356
USER
Which political organizations do Blair Wilson or Thomas Rocco Hansen belong to ?
OR((Q2905747,P102,c(Q7210356)), (Q12006101,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q2905747
relation P102
action find
entity Q12006101
relation P102
type Q7210356
{'OR': [['Q2905747', 'P102', {'concept': 'Q7210356'}], ['Q12006101', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q2905747 property:P102 ?t } UNION { resource:Q12006101 property:P102 ?t } } . ?t rdf:type ontology:Q7210356 }
Thomas Rocco Hansen Blair Wilson
action filter_type
action union
action find
entity Blair Wilson
relation member of political party
action find
entity Thomas Rocco Hansen
relation member of political party
type political organization
{'OR': [['Blair Wilson', 'member of political party', {'concept': 'political organization'}], ['Thomas Rocco Hansen', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Blair_Wilson property:member_of_political_party ?t } UNION { resource:Thomas_Rocco_Hansen property:member_of_political_party ?t } } . ?t rdf:type ontology:political_organization }
[]
political organization
Q138345 Q485665 Q691730
SYSTEM
Liberal Party of Canada, Progress Party, Green Party of Canada
Q138345 Q485665 Q691730
OR((Q2905747,P102,c(Q7210356)), (Q12006101,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q2905747
relation P102
action find
entity Q12006101
relation P102
type Q7210356
Blair Wilson or Thomas Rocco Hansen belong to [ANSWERS]
{'OR': [['Q2905747', 'P102', {'concept': 'Q7210356'}], ['Q12006101', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q2905747 property:P102 ?t } UNION { resource:Q12006101 property:P102 ?t } } . ?t rdf:type ontology:Q7210356 }
Liberal Party of Canada Progress Party Green Party of Canada
Blair Wilson or Thomas Rocco Hansen belong to Liberal Party of Canada, Progress Party and Green Party of Canada
Liberal Party of Canada Progress Party Green Party of Canada
action filter_type
action union
action find
entity Blair Wilson
relation member of political party
action find
entity Thomas Rocco Hansen
relation member of political party
type political organization
{'OR': [['Blair Wilson', 'member of political party', {'concept': 'political organization'}], ['Thomas Rocco Hansen', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Blair_Wilson property:member_of_political_party ?t } UNION { resource:Thomas_Rocco_Hansen property:member_of_political_party ?t } } . ?t rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q138345 Q485665 Q691730
P488
Q502895
USER
Who served as the chairperson of those political organizations ?
(Q138345,P488,c(Q502895)) (Q485665,P488,c(Q502895)) (Q691730,P488,c(Q502895))
action filter_type
action find
entity prev_answer
relation P488
type Q502895
['Q138345', 'P488', {'concept': 'Q502895'}] ['Q485665', 'P488', {'concept': 'Q502895'}] ['Q691730', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?o ) { ( resource:Q138345 ) ( resource:Q485665 ) ( resource:Q691730 ) } . ?d rdf:type ontology:Q502895 . ?o property:P488 ?d }
Liberal Party of Canada Progress Party Green Party of Canada
action filter_type
action find
entity prev_answer
relation chairperson
type common name
['Liberal Party of Canada', 'chairperson', {'concept': 'common name'}] ['Progress Party', 'chairperson', {'concept': 'common name'}] ['Green Party of Canada', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?o ) { ( resource:Liberal_Party_of_Canada ) ( resource:Progress_Party ) ( resource:Green_Party_of_Canada ) } . ?d rdf:type ontology:common_name . ?o property:chairperson ?d }
[]
common name
Q8619 Q128604 Q128543
SYSTEM
Pierre Trudeau, Lester B. Pearson, Jean Chrétien
Q8619 Q956335 Q128633 Q128626 Q128568 Q128543 Q311684 Q888208 Q128529 Q366456 Q128604 Q3099714 Q128664 Q128708 Q333003 Q5217019 Q272938 Q445620
(Q138345,P488,c(Q502895)) (Q485665,P488,c(Q502895)) (Q691730,P488,c(Q502895))
action filter_type
action find
entity prev_answer
relation P488
type Q502895
[ANSWERS] served as the chairperson of those political organizations
['Q138345', 'P488', {'concept': 'Q502895'}] ['Q485665', 'P488', {'concept': 'Q502895'}] ['Q691730', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?o ) { ( resource:Q138345 ) ( resource:Q485665 ) ( resource:Q691730 ) } . ?d rdf:type ontology:Q502895 . ?o property:P488 ?d }
Pierre Trudeau Bill Graham William Lyon Mackenzie King Louis St. Laurent John Turner Jean Chrétien Michael Ignatieff Bob Rae Paul Martin Stéphane Dion Lester B. Pearson Justin Trudeau Wilfrid Laurier Alexander Mackenzie Edward Blake Daniel Duncan McKenzie Siv Jensen Elizabeth May
Pierre Trudeau, Lester B. Pearson and Jean Chrétien served as the chairperson of those political organizations
Pierre Trudeau Lester B. Pearson Jean Chrétien
action filter_type
action find
entity prev_answer
relation chairperson
type common name
['Liberal Party of Canada', 'chairperson', {'concept': 'common name'}] ['Progress Party', 'chairperson', {'concept': 'common name'}] ['Green Party of Canada', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?o ) { ( resource:Liberal_Party_of_Canada ) ( resource:Progress_Party ) ( resource:Green_Party_of_Canada ) } . ?d rdf:type ontology:common_name . ?o property:chairperson ?d }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q8619 Q128604 Q128543
P22
Q502895
USER
Which people have Pierre Trudeau, Lester B. Pearson and Jean Chrétien as father ?
(c(Q502895),P22,Q8619) (c(Q502895),P22,Q128604) (c(Q502895),P22,Q128543)
action union
action filter_type
action find_reverse
entity Q8619
relation P22
type Q502895
action filter_type
action find_reverse
entity Q128604
relation P22
type Q502895
action filter_type
action find_reverse
entity Q128543
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q8619'] [{'concept': 'Q502895'}, 'P22', 'Q128604'] [{'concept': 'Q502895'}, 'P22', 'Q128543']
SELECT DISTINCT ?p WHERE { ?p property:P22 ?v . VALUES ( ?v ) { ( resource:Q8619 ) ( resource:Q128604 ) } }
Pierre Trudeau Lester B. Pearson Jean Chrétien
action union
action filter_type
action find_reverse
entity Pierre Trudeau
relation father
type common name
action filter_type
action find_reverse
entity Lester B. Pearson
relation father
type common name
action filter_type
action find_reverse
entity Jean Chrétien
relation father
type common name
[{'concept': 'common name'}, 'father', 'Pierre Trudeau'] [{'concept': 'common name'}, 'father', 'Lester B. Pearson'] [{'concept': 'common name'}, 'father', 'Jean Chrétien']
SELECT DISTINCT ?p WHERE { ?p property:father ?v . VALUES ( ?v ) { ( resource:Pierre_Trudeau ) ( resource:Lester_B._Pearson ) } }
[]
common name
Q3099714 Q5232929 Q4720909
SYSTEM
Justin Trudeau, Michel Trudeau, Alexandre Trudeau
Q4720909 Q3099714 Q5232929 Q21191637 Q1335034 Q6836336 Q21483285 Q5478272
(c(Q502895),P22,Q8619) (c(Q502895),P22,Q128604) (c(Q502895),P22,Q128543)
action union
action filter_type
action find_reverse
entity Q8619
relation P22
type Q502895
action filter_type
action find_reverse
entity Q128604
relation P22
type Q502895
action filter_type
action find_reverse
entity Q128543
relation P22
type Q502895
[ANSWERS] have Pierre Trudeau, Lester B. Pearson and Jean Chrétien as father
[{'concept': 'Q502895'}, 'P22', 'Q8619'] [{'concept': 'Q502895'}, 'P22', 'Q128604'] [{'concept': 'Q502895'}, 'P22', 'Q128543']
SELECT DISTINCT ?p WHERE { ?p property:P22 ?v . VALUES ( ?v ) { ( resource:Q8619 ) ( resource:Q128604 ) } }
Alexandre Trudeau Justin Trudeau Michel Trudeau Sarah Coyne Geoffrey Pearson Michel Chrétien Hubert Chrétien France Chrétien Desmarais
Justin Trudeau, Michel Trudeau and Alexandre Trudeau have Pierre Trudeau, Lester B. Pearson and Jean Chrétien as father
Justin Trudeau Michel Trudeau Alexandre Trudeau
action union
action filter_type
action find_reverse
entity Pierre Trudeau
relation father
type common name
action filter_type
action find_reverse
entity Lester B. Pearson
relation father
type common name
action filter_type
action find_reverse
entity Jean Chrétien
relation father
type common name
[{'concept': 'common name'}, 'father', 'Pierre Trudeau'] [{'concept': 'common name'}, 'father', 'Lester B. Pearson'] [{'concept': 'common name'}, 'father', 'Jean Chrétien']
SELECT DISTINCT ?p WHERE { ?p property:father ?v . VALUES ( ?v ) { ( resource:Pierre_Trudeau ) ( resource:Lester_B._Pearson ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5232929
P7
Q502895
USER
Who have that one as their sibling ?
(c(Q502895),P7,Q5232929)
action filter_type
action find_reverse
entity Q5232929
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q5232929']
SELECT DISTINCT ?y WHERE { ?y property:P7 resource:Q5232929 . ?y rdf:type ontology:Q502895 }
Michel Trudeau
action filter_type
action find_reverse
entity Michel Trudeau
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Michel Trudeau']
SELECT DISTINCT ?y WHERE { ?y property:brother resource:Michel_Trudeau . ?y rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q4720909
SYSTEM
Did you mean Alexandre Trudeau ?
Q3099714 Q5232929 Q4720909
(c(Q502895),P7,Q3099714) (c(Q502895),P7,Q5232929) (c(Q502895),P7,Q4720909)
[ANSWER]
[{'concept': 'Q502895'}, 'P7', 'Q3099714'] [{'concept': 'Q502895'}, 'P7', 'Q5232929'] [{'concept': 'Q502895'}, 'P7', 'Q4720909']
SELECT DISTINCT ?y WHERE { ?y property:P7 resource:Q5232929 . ?y rdf:type ontology:Q502895 }
Justin Trudeau Michel Trudeau Alexandre Trudeau
Did you mean Alexandre Trudeau ?
Alexandre Trudeau
[{'concept': 'common name'}, 'brother', 'Justin Trudeau'] [{'concept': 'common name'}, 'brother', 'Michel Trudeau'] [{'concept': 'common name'}, 'brother', 'Alexandre Trudeau']
SELECT DISTINCT ?y WHERE { ?y property:brother resource:Michel_Trudeau . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Michel Trudeau. Could you tell me the answer for that?
(c(Q502895),P7,Q5232929)
Q5232929
[{'concept': 'Q502895'}, 'P7', 'Q5232929']
[{'concept': 'common name'}, 'brother', 'Michel Trudeau']
[]
Q3788185 Q3099714 Q4720909
SYSTEM
Sophie Grégoire, Justin Trudeau, Alexandre Trudeau
Q3788185 Q3099714 Q4720909
(c(Q502895),P7,Q5232929)
action filter_type
action find_reverse
entity Q5232929
relation P7
type Q502895
[ANSWERS] have that one as their sibling
[{'concept': 'Q502895'}, 'P7', 'Q5232929']
SELECT DISTINCT ?y WHERE { ?y property:P7 resource:Q5232929 . ?y rdf:type ontology:Q502895 }
Sophie Grégoire Justin Trudeau Alexandre Trudeau
Sophie Grégoire, Justin Trudeau and Alexandre Trudeau have that one as their sibling
Sophie Grégoire Justin Trudeau Alexandre Trudeau
action filter_type
action find_reverse
entity Michel Trudeau
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Michel Trudeau']
SELECT DISTINCT ?y WHERE { ?y property:brother resource:Michel_Trudeau . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q3099714 Q4831013
P106
Q12737077
USER
How many occupations do Justin Trudeau and Ayaz Amir do for a living ?
(Q3099714,P106,c(Q12737077)) (Q4831013,P106,c(Q12737077))
action count
action intersection
action filter_type
action find
entity Q3099714
relation P106
type Q12737077
action filter_type
action find
entity Q4831013
relation P106
type Q12737077
['Q3099714', 'P106', {'concept': 'Q12737077'}] ['Q4831013', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { ?h rdf:type ontology:Q12737077 . resource:Q3099714 property:P106 ?h . resource:Q4831013 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
Justin Trudeau Ayaz Amir
action count
action intersection
action filter_type
action find
entity Justin Trudeau
relation occupation
type occupation
action filter_type
action find
entity Ayaz Amir
relation occupation
type occupation
['Justin Trudeau', 'occupation', {'concept': 'occupation'}] ['Ayaz Amir', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { ?h rdf:type ontology:occupation . resource:Justin_Trudeau property:occupation ?h . resource:Ayaz_Amir property:occupation ?h . ?h rdf:type ontology:occupation }
[]
occupation
SYSTEM
2
Q1930187 Q82955
(Q3099714,P106,c(Q12737077)) (Q4831013,P106,c(Q12737077))
action count
action intersection
action filter_type
action find
entity Q3099714
relation P106
type Q12737077
action filter_type
action find
entity Q4831013
relation P106
type Q12737077
[ANSWER]
['Q3099714', 'P106', {'concept': 'Q12737077'}] ['Q4831013', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { ?h rdf:type ontology:Q12737077 . resource:Q3099714 property:P106 ?h . resource:Q4831013 property:P106 ?h . ?h rdf:type ontology:Q12737077 }
journalist politician
2
action count
action intersection
action filter_type
action find
entity Justin Trudeau
relation occupation
type occupation
action filter_type
action find
entity Ayaz Amir
relation occupation
type occupation
['Justin Trudeau', 'occupation', {'concept': 'occupation'}] ['Ayaz Amir', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { ?h rdf:type ontology:occupation . resource:Justin_Trudeau property:occupation ?h . resource:Ayaz_Amir property:occupation ?h . ?h rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3099714
P26
Q502895
USER
Which person is the spouse of Justin Trudeau ?
(Q3099714,P26,c(Q502895))
action filter_type
action find
entity Q3099714
relation P26
type Q502895
['Q3099714', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q3099714 property:P26 ?m }
Justin Trudeau
action filter_type
action find
entity Justin Trudeau
relation spouse
type common name
['Justin Trudeau', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:Justin_Trudeau property:spouse ?m }
[]
common name
Q3788185
SYSTEM
Sophie Grégoire
Q3788185
(Q3099714,P26,c(Q502895))
action filter_type
action find
entity Q3099714
relation P26
type Q502895
[ANSWER] is the spouse of Justin Trudeau
['Q3099714', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q3099714 property:P26 ?m }
Sophie Grégoire
Sophie Grégoire is the spouse of Justin Trudeau
Sophie Grégoire
action filter_type
action find
entity Justin Trudeau
relation spouse
type common name
['Justin Trudeau', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:Justin_Trudeau property:spouse ?m }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments do atleast 2560 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2560
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?e ) WHERE { ?d property:P1303 ?j . ?d rdf:type ontology:Q502895 . ?j rdf:type ontology:Q34379 } GROUP BY ?j } . FILTER ( ?e >= 2560 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2560
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?e ) WHERE { ?d property:instrument ?j . ?d rdf:type ontology:common_name . ?j rdf:type ontology:musical_instrument } GROUP BY ?j } . FILTER ( ?e >= 2560 ) }
[]
musical instrument common name
SYSTEM
2
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2560
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?e ) WHERE { ?d property:P1303 ?j . ?d rdf:type ontology:Q502895 . ?j rdf:type ontology:Q34379 } GROUP BY ?j } . FILTER ( ?e >= 2560 ) }
piano violin
2
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2560
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?d ) AS ?e ) WHERE { ?d property:instrument ?j . ?d rdf:type ontology:common_name . ?j rdf:type ontology:musical_instrument } GROUP BY ?j } . FILTER ( ?e >= 2560 ) }
[]
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 around 366 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 366
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?k ) WHERE { ?c property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?k = 366 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 366
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?k ) WHERE { ?c property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?k = 366 ) }
[]
musical instrument common name
SYSTEM
62
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 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 366
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?k ) WHERE { ?c property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?k = 366 ) }
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 cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
62
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 366
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?l ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?k ) WHERE { ?c property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?k = 366 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q386618 Q5232929
P27
Q1048835
USER
Which political territories do Michel Trudeau or Caecilius Bassus belong to ?
OR((Q5232929,P27,c(Q1048835)), (Q386618,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q5232929
relation P27
action find
entity Q386618
relation P27
type Q1048835
{'OR': [['Q5232929', 'P27', {'concept': 'Q1048835'}], ['Q386618', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q5232929 property:P27 ?j } UNION { resource:Q386618 property:P27 ?j } } . ?j rdf:type ontology:Q1048835 }
Caecilius Bassus Michel Trudeau
action filter_type
action union
action find
entity Michel Trudeau
relation country of citizenship
action find
entity Caecilius Bassus
relation country of citizenship
type political territorial entity
{'OR': [['Michel Trudeau', 'country of citizenship', {'concept': 'political territorial entity'}], ['Caecilius Bassus', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Michel_Trudeau property:country_of_citizenship ?j } UNION { resource:Caecilius_Bassus property:country_of_citizenship ?j } } . ?j rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1747689 Q16
SYSTEM
Ancient Rome, Canada
Q1747689 Q16
OR((Q5232929,P27,c(Q1048835)), (Q386618,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q5232929
relation P27
action find
entity Q386618
relation P27
type Q1048835
Michel Trudeau or Caecilius Bassus belong to the [ANSWERS]
{'OR': [['Q5232929', 'P27', {'concept': 'Q1048835'}], ['Q386618', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q5232929 property:P27 ?j } UNION { resource:Q386618 property:P27 ?j } } . ?j rdf:type ontology:Q1048835 }
Ancient Rome Canada
Michel Trudeau or Caecilius Bassus belong to the Ancient Rome and Canada
Ancient Rome Canada
action filter_type
action union
action find
entity Michel Trudeau
relation country of citizenship
action find
entity Caecilius Bassus
relation country of citizenship
type political territorial entity
{'OR': [['Michel Trudeau', 'country of citizenship', {'concept': 'political territorial entity'}], ['Caecilius Bassus', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Michel_Trudeau property:country_of_citizenship ?j } UNION { resource:Caecilius_Bassus property:country_of_citizenship ?j } } . ?j rdf:type ontology:political_territorial_entity }
[]