Simple Question (Direct)
Simple Question
Q3351532
P106
Q12737077
USER
What are the professions of Olof Arrhenius ?
(Q3351532,P106,c(Q12737077))
action filter_type
action find
entity Q3351532
relation P106
type Q12737077
['Q3351532', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q3351532 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
Olof Arrhenius
action filter_type
action find
entity Olof Arrhenius
relation occupation
type occupation
['Olof Arrhenius', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Olof_Arrhenius property:occupation ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q3621491 Q593644
SYSTEM
archaeologist, chemist
Q3621491 Q593644
(Q3351532,P106,c(Q12737077))
action filter_type
action find
entity Q3351532
relation P106
type Q12737077
The professions of Olof Arrhenius are [ANSWERS]
['Q3351532', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q3351532 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
archaeologist chemist
The professions of Olof Arrhenius are archaeologist and chemist
archaeologist chemist
action filter_type
action find
entity Olof Arrhenius
relation occupation
type occupation
['Olof Arrhenius', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Olof_Arrhenius property:occupation ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q3621491 Q593644
P101
Q502895
USER
Which people have specialisation in archaeologist and chemist ?
(c(Q502895),P101,Q3621491) (c(Q502895),P101,Q593644)
action union
action filter_type
action find_reverse
entity Q3621491
relation P101
type Q502895
action filter_type
action find_reverse
entity Q593644
relation P101
type Q502895
[{'concept': 'Q502895'}, 'P101', 'Q3621491'] [{'concept': 'Q502895'}, 'P101', 'Q593644']
SELECT DISTINCT ?m WHERE { VALUES ( ?y ) { ( resource:Q3621491 ) ( resource:Q593644 ) } . ?m property:P101 ?y }
archaeologist chemist
action union
action filter_type
action find_reverse
entity archaeologist
relation field of work
type common name
action filter_type
action find_reverse
entity chemist
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'archaeologist'] [{'concept': 'common name'}, 'field of work', 'chemist']
SELECT DISTINCT ?m WHERE { VALUES ( ?y ) { ( resource:archaeologist ) ( resource:chemist ) } . ?m property:field_of_work ?y }
[]
common name
Q102139 Q350034 Q18560133
SYSTEM
Margrethe II of Denmark, Norman Hackerman, Wolfgang Kautek
Q102139 Q350034 Q18560133
(c(Q502895),P101,Q3621491) (c(Q502895),P101,Q593644)
action union
action filter_type
action find_reverse
entity Q3621491
relation P101
type Q502895
action filter_type
action find_reverse
entity Q593644
relation P101
type Q502895
[ANSWERS] have specialisation in archaeologist and chemist
[{'concept': 'Q502895'}, 'P101', 'Q3621491'] [{'concept': 'Q502895'}, 'P101', 'Q593644']
SELECT DISTINCT ?m WHERE { VALUES ( ?y ) { ( resource:Q3621491 ) ( resource:Q593644 ) } . ?m property:P101 ?y }
Margrethe II of Denmark Norman Hackerman Wolfgang Kautek
Margrethe II of Denmark, Norman Hackerman and Wolfgang Kautek have specialisation in archaeologist and chemist
Margrethe II of Denmark Norman Hackerman Wolfgang Kautek
action union
action filter_type
action find_reverse
entity archaeologist
relation field of work
type common name
action filter_type
action find_reverse
entity chemist
relation field of work
type common name
[{'concept': 'common name'}, 'field of work', 'archaeologist'] [{'concept': 'common name'}, 'field of work', 'chemist']
SELECT DISTINCT ?m WHERE { VALUES ( ?y ) { ( resource:archaeologist ) ( resource:chemist ) } . ?m property:field_of_work ?y }
[]
Clarification
Simple Question|Single Entity|Indirect
Q102139
P166
Q618779
USER
What were awarded to that person ?
(Q102139,P166,c(Q618779))
action filter_type
action find
entity Q102139
relation P166
type Q618779
['Q102139', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?r WHERE { resource:Q102139 property:P166 ?r . ?r rdf:type ontology:Q618779 }
Margrethe II of Denmark
action filter_type
action find
entity Margrethe II of Denmark
relation award received
type award
['Margrethe II of Denmark', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?r WHERE { resource:Margrethe_II_of_Denmark property:award_received ?r . ?r rdf:type ontology:award }
[]
award
Clarification for simple ques.
Q350034
SYSTEM
Did you mean Norman Hackerman ?
Q102139 Q350034 Q18560133
(Q102139,P166,c(Q618779)) (Q350034,P166,c(Q618779)) (Q18560133,P166,c(Q618779))
[ANSWER]
['Q102139', 'P166', {'concept': 'Q618779'}] ['Q350034', 'P166', {'concept': 'Q618779'}] ['Q18560133', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?r WHERE { resource:Q102139 property:P166 ?r . ?r rdf:type ontology:Q618779 }
Margrethe II of Denmark Norman Hackerman Wolfgang Kautek
Did you mean Norman Hackerman ?
Norman Hackerman
['Margrethe II of Denmark', 'award received', {'concept': 'award'}] ['Norman Hackerman', 'award received', {'concept': 'award'}] ['Wolfgang Kautek', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?r WHERE { resource:Margrethe_II_of_Denmark property:award_received ?r . ?r rdf:type ontology:award }
[]
Simple Question (Coreferenced)
USER
No, I meant Margrethe II of Denmark. Could you tell me the answer for that?
(Q102139,P166,c(Q618779))
Q102139
['Q102139', 'P166', {'concept': 'Q618779'}]
['Margrethe II of Denmark', 'award received', {'concept': 'award'}]
[]
Q1423841 Q13377517 Q12192384
SYSTEM
Order of Pius IX, Knight Grand Cross with Collar of the Order of St. Olav‎, Dame Grand Cross of the Royal Victorian Order
Q1423841 Q13377517 Q84020 Q12192384 Q950604
(Q102139,P166,c(Q618779))
action filter_type
action find
entity Q102139
relation P166
type Q618779
[ANSWERS] were awarded to that person
['Q102139', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?r WHERE { resource:Q102139 property:P166 ?r . ?r rdf:type ontology:Q618779 }
Order of Pius IX Knight Grand Cross with Collar of the Order of St. Olav‎ Order of the White Eagle Dame Grand Cross of the Royal Victorian Order Order of the Star of Romania
Order of Pius IX, Knight Grand Cross with Collar of the Order of St. Olav‎ and Dame Grand Cross of the Royal Victorian Order were awarded to that person
Order of Pius IX Knight Grand Cross with Collar of the Order of St. Olav‎ Dame Grand Cross of the Royal Victorian Order
action filter_type
action find
entity Margrethe II of Denmark
relation award received
type award
['Margrethe II of Denmark', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?r WHERE { resource:Margrethe_II_of_Denmark property:award_received ?r . ?r rdf:type ontology:award }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P361
Q35798 Q1047113 Q618779
USER
How many awards are parts of greater number of executive branches or special fields than that award ?
(c(Q618779),P361,c(Q35798)|c(Q1047113))
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q35798'}, {'concept': 'Q1047113'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:P361 ?y } UNION { ?z property:P361 ?x } } . ?z rdf:type ontology:Q618779 . ?y rdf:type ontology:Q35798 . ?x rdf:type ontology:Q1047113 }
[{'concept': 'award'}, 'part of', [{'concept': 'executive branch'}, {'concept': 'special field'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:part_of ?y } UNION { ?z property:part_of ?x } } . ?z rdf:type ontology:award . ?y rdf:type ontology:executive_branch . ?x rdf:type ontology:special_field }
[]
executive branch special field award
Comparative|Count over More/Less|Mult. entity type|Clarification
Q13377517
SYSTEM
Did you mean Knight Grand Cross with Collar of the Order of St. Olav‎ ?
(c(Q618779),P361,c(Q35798)|c(Q1047113))
[ANSWER]
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q35798'}, {'concept': 'Q1047113'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:P361 ?y } UNION { ?z property:P361 ?x } } . ?z rdf:type ontology:Q618779 . ?y rdf:type ontology:Q35798 . ?x rdf:type ontology:Q1047113 }
Did you mean Knight Grand Cross with Collar of the Order of St. Olav‎ ?
Knight Grand Cross with Collar of the Order of St. Olav‎
[{'concept': 'award'}, 'part of', [{'concept': 'executive branch'}, {'concept': 'special field'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:part_of ?y } UNION { ?z property:part_of ?x } } . ?z rdf:type ontology:award . ?y rdf:type ontology:executive_branch . ?x rdf:type ontology:special_field }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q618779),P361,c(Q35798)|c(Q1047113))
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q35798'}, {'concept': 'Q1047113'}]]
[{'concept': 'award'}, 'part of', [{'concept': 'executive branch'}, {'concept': 'special field'}]]
[]
SYSTEM
3
Q3068024 Q372370 Q1549393
(c(Q618779),P361,c(Q35798)|c(Q1047113))
[ANSWER]
[{'concept': 'Q618779'}, 'P361', [{'concept': 'Q35798'}, {'concept': 'Q1047113'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:P361 ?y } UNION { ?z property:P361 ?x } } . ?z rdf:type ontology:Q618779 . ?y rdf:type ontology:Q35798 . ?x rdf:type ontology:Q1047113 }
First Secretary of State Knight's Cross Grand Officer
3
[{'concept': 'award'}, 'part of', [{'concept': 'executive branch'}, {'concept': 'special field'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { { { ?z property:part_of ?y } UNION { ?z property:part_of ?x } } . ?z rdf:type ontology:award . ?y rdf:type ontology:executive_branch . ?x rdf:type ontology:special_field }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7898775 Q18560133
P27 P17
Q1048835
USER
Which political territories are the countries of citizenship of Wolfgang Kautek or are Upper Margaree, Nova Scotia a part of ?
OR((Q18560133,P27,c(Q1048835)), (Q7898775,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q18560133
relation P27
action find
entity Q7898775
relation P17
type Q1048835
{'OR': [['Q18560133', 'P27', {'concept': 'Q1048835'}], ['Q7898775', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q7898775 property:P17 ?g } UNION { resource:Q18560133 property:P27 ?g } } . ?g rdf:type ontology:Q1048835 }
Upper Margaree, Nova Scotia Wolfgang Kautek
action filter_type
action union
action find
entity Wolfgang Kautek
relation country of citizenship
action find
entity Upper Margaree, Nova Scotia
relation country
type political territorial entity
{'OR': [['Wolfgang Kautek', 'country of citizenship', {'concept': 'political territorial entity'}], ['Upper Margaree, Nova Scotia', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Upper_Margaree,_Nova_Scotia property:country ?g } UNION { resource:Wolfgang_Kautek property:country_of_citizenship ?g } } . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q40
SYSTEM
Canada, Austria
Q16 Q40
OR((Q18560133,P27,c(Q1048835)), (Q7898775,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q18560133
relation P27
action find
entity Q7898775
relation P17
type Q1048835
[ANSWERS] are the countries of citizenship of Wolfgang Kautek or are Upper Margaree, Nova Scotia a part of
{'OR': [['Q18560133', 'P27', {'concept': 'Q1048835'}], ['Q7898775', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q7898775 property:P17 ?g } UNION { resource:Q18560133 property:P27 ?g } } . ?g rdf:type ontology:Q1048835 }
Canada Austria
Canada and Austria are the countries of citizenship of Wolfgang Kautek or are Upper Margaree, Nova Scotia a part of
Canada Austria
action filter_type
action union
action find
entity Wolfgang Kautek
relation country of citizenship
action find
entity Upper Margaree, Nova Scotia
relation country
type political territorial entity
{'OR': [['Wolfgang Kautek', 'country of citizenship', {'concept': 'political territorial entity'}], ['Upper Margaree, Nova Scotia', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Upper_Margaree,_Nova_Scotia property:country ?g } UNION { resource:Wolfgang_Kautek property:country_of_citizenship ?g } } . ?g rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1006
P530
Q1048835 Q15617994
USER
How many administrative territories have ambassadorial relations with greater number of political territories than Guinea ?
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1006
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?o ) WHERE { ?f property:P530 ?p . ?p rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { resource:Q1006 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?o > ?e ) }
Guinea
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Guinea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?o ) WHERE { ?f property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { resource:Guinea property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o > ?e ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
84
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q736 Q230 Q233 Q20 Q1041 Q27 Q843 Q184 Q1029 Q1028 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1006
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?o ) WHERE { ?f property:P530 ?p . ?p rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { resource:Q1006 property:P530 ?t . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?o > ?e ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Ecuador Georgia Malta Norway Senegal Ireland Pakistan Belarus Mozambique Morocco Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
84
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Guinea
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?o ) WHERE { ?f property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?e ) WHERE { resource:Guinea property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o > ?e ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q155
P530
Q1048835 Q15617994
USER
And how about Brazil?
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q155
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { FILTER ( ?a > ?k ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { resource:Q155 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } . { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?a ) WHERE { ?z property:P530 ?o . ?o rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?z } }
Brazil
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Brazil
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { FILTER ( ?a > ?k ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { resource:Brazil property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity } } . { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?a ) WHERE { ?z property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q38 Q230
(c(Q15617994),P530,c(Q1048835))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q155
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { FILTER ( ?a > ?k ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { resource:Q155 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } . { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?a ) WHERE { ?z property:P530 ?o . ?o rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?z } }
Italy Georgia
2
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Brazil
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { FILTER ( ?a > ?k ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?k ) WHERE { resource:Brazil property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity } } . { SELECT DISTINCT ?z ( COUNT ( ?o ) AS ?a ) WHERE { ?z property:diplomatic_relation ?o . ?o rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } }
[]