Simple Question (Direct)
Simple Question
Q4761447
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Andy Walls ?
(Q4761447,P27,c(Q15617994))
action filter_type
action find
entity Q4761447
relation P27
type Q15617994
['Q4761447', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q4761447 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Andy Walls
action filter_type
action find
entity Andy Walls
relation country of citizenship
type designation for an administrative territorial entity
['Andy Walls', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Andy_Walls property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q4761447,P27,c(Q15617994))
action filter_type
action find
entity Q4761447
relation P27
type Q15617994
[ANSWER] is the country of citizenship of Andy Walls
['Q4761447', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q4761447 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the country of citizenship of Andy Walls
United Kingdom
action filter_type
action find
entity Andy Walls
relation country of citizenship
type designation for an administrative territorial entity
['Andy Walls', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Andy_Walls property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q145
P35
Q502895
USER
Which people are the heads of state of that administrative territory ?
(Q145,P35,c(Q502895))
action filter_type
action find
entity Q145
relation P35
type Q502895
['Q145', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q145 property:P35 ?x . ?x rdf:type ontology:Q502895 }
United Kingdom
action filter_type
action find
entity United Kingdom
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:United_Kingdom property:head_of_state ?x . ?x rdf:type ontology:common_name }
[]
common name
Q9682 Q280856 Q269412
SYSTEM
Elizabeth II, George VI, George V
Q590227 Q269412 Q280856 Q9682
(Q145,P35,c(Q502895))
action filter_type
action find
entity Q145
relation P35
type Q502895
[ANSWERS] are the heads of state of that administrative territory
['Q145', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q145 property:P35 ?x . ?x rdf:type ontology:Q502895 }
Edward VIII George V George VI Elizabeth II
Elizabeth II, George VI and George V are the heads of state of that administrative territory
Elizabeth II George VI George V
action filter_type
action find
entity United Kingdom
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:United_Kingdom property:head_of_state ?x . ?x rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q280856
P40
Q502895
USER
Which people are children of that one ?
(Q280856,P40,c(Q502895))
action filter_type
action find
entity Q280856
relation P40
type Q502895
['Q280856', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q280856 property:P40 ?l . ?l rdf:type ontology:Q502895 }
George VI
action filter_type
action find
entity George VI
relation child
type common name
['George VI', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:George_VI property:child ?l . ?l rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q269412
SYSTEM
Did you mean George V ?
Q9682 Q280856 Q269412
(Q9682,P40,c(Q502895)) (Q280856,P40,c(Q502895)) (Q269412,P40,c(Q502895))
[ANSWER]
['Q9682', 'P40', {'concept': 'Q502895'}] ['Q280856', 'P40', {'concept': 'Q502895'}] ['Q269412', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q280856 property:P40 ?l . ?l rdf:type ontology:Q502895 }
Elizabeth II George VI George V
Did you mean George V ?
George V
['Elizabeth II', 'child', {'concept': 'common name'}] ['George VI', 'child', {'concept': 'common name'}] ['George V', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:George_VI property:child ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant George VI. Could you tell me the answer for that?
(Q280856,P40,c(Q502895))
Q280856
['Q280856', 'P40', {'concept': 'Q502895'}]
['George VI', 'child', {'concept': 'common name'}]
[]
Q153815 Q9682
SYSTEM
Princess Margaret, Countess of Snowdon, Elizabeth II
Q153815 Q9682
(Q280856,P40,c(Q502895))
action filter_type
action find
entity Q280856
relation P40
type Q502895
[ANSWERS] are children of that one
['Q280856', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q280856 property:P40 ?l . ?l rdf:type ontology:Q502895 }
Princess Margaret, Countess of Snowdon Elizabeth II
Princess Margaret, Countess of Snowdon and Elizabeth II are children of that one
Princess Margaret, Countess of Snowdon Elizabeth II
action filter_type
action find
entity George VI
relation child
type common name
['George VI', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:George_VI property:child ?l . ?l rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q9682
P39
Q895526 Q12737077
USER
How many authority organs or occupations were the positions for which Elizabeth II were appointed ?
(Q9682,P39,c(Q895526)) (Q9682,P39,c(Q12737077))
action count
action union
action filter_type
action find
entity Q9682
relation P39
type Q895526
action filter_type
action find
entity Q9682
relation P39
type Q12737077
['Q9682', 'P39', {'concept': 'Q895526'}] ['Q9682', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { resource:Q9682 property:P39 ?s . ?s rdf:type ontology:Q895526 } UNION { ?s rdf:type ontology:Q12737077 . resource:Q9682 property:P39 ?s } }
Elizabeth II
action count
action union
action filter_type
action find
entity Elizabeth II
relation position held
type authority organ
action filter_type
action find
entity Elizabeth II
relation position held
type occupation
['Elizabeth II', 'position held', {'concept': 'authority organ'}] ['Elizabeth II', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { resource:Elizabeth_II property:position_held ?s . ?s rdf:type ontology:authority_organ } UNION { ?s rdf:type ontology:occupation . resource:Elizabeth_II property:position_held ?s } }
[]
authority organ occupation
SYSTEM
7
Q3052674 Q14931512 Q9134365 Q116 Q14931517 Q460057 Q14931511
(Q9682,P39,c(Q895526)) (Q9682,P39,c(Q12737077))
action count
action union
action filter_type
action find
entity Q9682
relation P39
type Q895526
action filter_type
action find
entity Q9682
relation P39
type Q12737077
[ANSWER]
['Q9682', 'P39', {'concept': 'Q895526'}] ['Q9682', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { resource:Q9682 property:P39 ?s . ?s rdf:type ontology:Q895526 } UNION { ?s rdf:type ontology:Q12737077 . resource:Q9682 property:P39 ?s } }
Supreme Governor of the Church of England monarch of Australia Monarch of the United Kingdom monarch Monarch of New Zealand Head of the Commonwealth monarch of Canada
7
action count
action union
action filter_type
action find
entity Elizabeth II
relation position held
type authority organ
action filter_type
action find
entity Elizabeth II
relation position held
type occupation
['Elizabeth II', 'position held', {'concept': 'authority organ'}] ['Elizabeth II', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { resource:Elizabeth_II property:position_held ?s . ?s rdf:type ontology:authority_organ } UNION { ?s rdf:type ontology:occupation . resource:Elizabeth_II property:position_held ?s } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2581732 Q269412
P40
Q502895
USER
Which people are an offsprings of George V or Henry I, Count of Tyrol ?
OR((Q269412,P40,c(Q502895)), (Q2581732,P40,c(Q502895)))
action filter_type
action union
action find
entity Q269412
relation P40
action find
entity Q2581732
relation P40
type Q502895
{'OR': [['Q269412', 'P40', {'concept': 'Q502895'}], ['Q2581732', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?u WHERE { { ?e property:P40 ?u . VALUES ( ?e ) { ( resource:Q269412 ) ( resource:Q2581732 ) } } . ?u rdf:type ontology:Q502895 }
Henry I, Count of Tyrol George V
action filter_type
action union
action find
entity George V
relation child
action find
entity Henry I, Count of Tyrol
relation child
type common name
{'OR': [['George V', 'child', {'concept': 'common name'}], ['Henry I, Count of Tyrol', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?u WHERE { { ?e property:child ?u . VALUES ( ?e ) { ( resource:George_V ) ( resource:Henry_I,_Count_of_Tyrol ) } } . ?u rdf:type ontology:common_name }
[]
common name
Q160770 Q590227 Q310488 Q688408 Q117174 Q233913 Q280856
SYSTEM
Prince George, Duke of Kent, Edward VIII, Prince John of the United Kingdom, Albert IV, Count of Tyrol, Prince Henry, Duke of Gloucester, Mary, Princess Royal and Countess of Harewood, George VI
Q160770 Q590227 Q310488 Q688408 Q117174 Q233913 Q280856
OR((Q269412,P40,c(Q502895)), (Q2581732,P40,c(Q502895)))
action filter_type
action union
action find
entity Q269412
relation P40
action find
entity Q2581732
relation P40
type Q502895
[ANSWERS] are an offsprings of George V or Henry I, Count of Tyrol
{'OR': [['Q269412', 'P40', {'concept': 'Q502895'}], ['Q2581732', 'P40', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?u WHERE { { ?e property:P40 ?u . VALUES ( ?e ) { ( resource:Q269412 ) ( resource:Q2581732 ) } } . ?u rdf:type ontology:Q502895 }
Prince George, Duke of Kent Edward VIII Prince John of the United Kingdom Albert IV, Count of Tyrol Prince Henry, Duke of Gloucester Mary, Princess Royal and Countess of Harewood George VI
Prince George, Duke of Kent, Edward VIII, Prince John of the United Kingdom, Albert IV, Count of Tyrol, Prince Henry, Duke of Gloucester, Mary, Princess Royal and Countess of Harewood and George VI are an offsprings of George V or Henry I, Count of Tyrol
Prince George, Duke of Kent Edward VIII Prince John of the United Kingdom Albert IV, Count of Tyrol Prince Henry, Duke of Gloucester Mary, Princess Royal and Countess of Harewood George VI
action filter_type
action union
action find
entity George V
relation child
action find
entity Henry I, Count of Tyrol
relation child
type common name
{'OR': [['George V', 'child', {'concept': 'common name'}], ['Henry I, Count of Tyrol', 'child', {'concept': 'common name'}]]}
SELECT DISTINCT ?u WHERE { { ?e property:child ?u . VALUES ( ?e ) { ( resource:George_V ) ( resource:Henry_I,_Count_of_Tyrol ) } } . ?u rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P166
Q193622 Q1788716
USER
How many orders and military decorations were received by that person ?
(Q280856,P166,c(Q193622)) (Q280856,P166,c(Q1788716)) (Q160770,P166,c(Q193622)) (Q160770,P166,c(Q1788716)) (Q590227,P166,c(Q193622)) (Q590227,P166,c(Q1788716)) (Q310488,P166,c(Q193622)) (Q310488,P166,c(Q1788716)) (Q688408,P166,c(Q193622)) (Q688408,P166,c(Q1788716)) (Q117174,P166,c(Q193622)) (Q117174,P166,c(Q1788716)) (Q233913,P166,c(Q193622)) (Q233913,P166,c(Q1788716)) (Q280856,P166,c(Q193622)) (Q280856,P166,c(Q1788716))
['Q280856', 'P166', {'concept': 'Q193622'}] ['Q280856', 'P166', {'concept': 'Q1788716'}] ['Q160770', 'P166', {'concept': 'Q193622'}] ['Q160770', 'P166', {'concept': 'Q1788716'}] ['Q590227', 'P166', {'concept': 'Q193622'}] ['Q590227', 'P166', {'concept': 'Q1788716'}] ['Q310488', 'P166', {'concept': 'Q193622'}] ['Q310488', 'P166', {'concept': 'Q1788716'}] ['Q688408', 'P166', {'concept': 'Q193622'}] ['Q688408', 'P166', {'concept': 'Q1788716'}] ['Q117174', 'P166', {'concept': 'Q193622'}] ['Q117174', 'P166', {'concept': 'Q1788716'}] ['Q233913', 'P166', {'concept': 'Q193622'}] ['Q233913', 'P166', {'concept': 'Q1788716'}] ['Q280856', 'P166', {'concept': 'Q193622'}] ['Q280856', 'P166', {'concept': 'Q1788716'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q280856 property:P166 ?z } UNION { resource:Q280856 property:P166 ?y } UNION { resource:Q160770 property:P166 ?z } UNION { resource:Q160770 property:P166 ?y } UNION { resource:Q590227 property:P166 ?z } UNION { resource:Q590227 property:P166 ?y } UNION { resource:Q310488 property:P166 ?z } UNION { resource:Q310488 property:P166 ?y } UNION { resource:Q688408 property:P166 ?z } UNION { resource:Q688408 property:P166 ?y } UNION { resource:Q117174 property:P166 ?z } UNION { resource:Q117174 property:P166 ?y } UNION { resource:Q233913 property:P166 ?z } UNION { resource:Q233913 property:P166 ?y } UNION { resource:Q280856 property:P166 ?z } UNION { resource:Q280856 property:P166 ?y } } . ?z rdf:type ontology:Q20680311 . ?y rdf:type ontology:Q1788716 }
['George VI', 'award received', {'concept': 'order'}] ['George VI', 'award received', {'concept': 'military decoration'}] ['Prince George, Duke of Kent', 'award received', {'concept': 'order'}] ['Prince George, Duke of Kent', 'award received', {'concept': 'military decoration'}] ['Edward VIII', 'award received', {'concept': 'order'}] ['Edward VIII', 'award received', {'concept': 'military decoration'}] ['Prince John of the United Kingdom', 'award received', {'concept': 'order'}] ['Prince John of the United Kingdom', 'award received', {'concept': 'military decoration'}] ['Albert IV, Count of Tyrol', 'award received', {'concept': 'order'}] ['Albert IV, Count of Tyrol', 'award received', {'concept': 'military decoration'}] ['Prince Henry, Duke of Gloucester', 'award received', {'concept': 'order'}] ['Prince Henry, Duke of Gloucester', 'award received', {'concept': 'military decoration'}] ['Mary, Princess Royal and Countess of Harewood', 'award received', {'concept': 'order'}] ['Mary, Princess Royal and Countess of Harewood', 'award received', {'concept': 'military decoration'}] ['George VI', 'award received', {'concept': 'order'}] ['George VI', 'award received', {'concept': 'military decoration'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:George_VI property:award_received ?z } UNION { resource:George_VI property:award_received ?y } UNION { resource:Prince_George,_Duke_of_Kent property:award_received ?z } UNION { resource:Prince_George,_Duke_of_Kent property:award_received ?y } UNION { resource:Edward_VIII property:award_received ?z } UNION { resource:Edward_VIII property:award_received ?y } UNION { resource:Prince_John_of_the_United_Kingdom property:award_received ?z } UNION { resource:Prince_John_of_the_United_Kingdom property:award_received ?y } UNION { resource:Albert_IV,_Count_of_Tyrol property:award_received ?z } UNION { resource:Albert_IV,_Count_of_Tyrol property:award_received ?y } UNION { resource:Prince_Henry,_Duke_of_Gloucester property:award_received ?z } UNION { resource:Prince_Henry,_Duke_of_Gloucester property:award_received ?y } UNION { resource:Mary,_Princess_Royal_and_Countess_of_Harewood property:award_received ?z } UNION { resource:Mary,_Princess_Royal_and_Countess_of_Harewood property:award_received ?y } UNION { resource:George_VI property:award_received ?z } UNION { resource:George_VI property:award_received ?y } } . ?z rdf:type ontology:order . ?y rdf:type ontology:military_decoration }
[]
order military decoration
Quantitative|Count|Mult. entity type|Clarification
Q233913
SYSTEM
Did you mean Mary, Princess Royal and Countess of Harewood ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q280856 property:P166 ?z } UNION { resource:Q280856 property:P166 ?y } UNION { resource:Q160770 property:P166 ?z } UNION { resource:Q160770 property:P166 ?y } UNION { resource:Q590227 property:P166 ?z } UNION { resource:Q590227 property:P166 ?y } UNION { resource:Q310488 property:P166 ?z } UNION { resource:Q310488 property:P166 ?y } UNION { resource:Q688408 property:P166 ?z } UNION { resource:Q688408 property:P166 ?y } UNION { resource:Q117174 property:P166 ?z } UNION { resource:Q117174 property:P166 ?y } UNION { resource:Q233913 property:P166 ?z } UNION { resource:Q233913 property:P166 ?y } UNION { resource:Q280856 property:P166 ?z } UNION { resource:Q280856 property:P166 ?y } } . ?z rdf:type ontology:Q20680311 . ?y rdf:type ontology:Q1788716 }
Did you mean Mary, Princess Royal and Countess of Harewood ?
Mary, Princess Royal and Countess of Harewood
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:George_VI property:award_received ?z } UNION { resource:George_VI property:award_received ?y } UNION { resource:Prince_George,_Duke_of_Kent property:award_received ?z } UNION { resource:Prince_George,_Duke_of_Kent property:award_received ?y } UNION { resource:Edward_VIII property:award_received ?z } UNION { resource:Edward_VIII property:award_received ?y } UNION { resource:Prince_John_of_the_United_Kingdom property:award_received ?z } UNION { resource:Prince_John_of_the_United_Kingdom property:award_received ?y } UNION { resource:Albert_IV,_Count_of_Tyrol property:award_received ?z } UNION { resource:Albert_IV,_Count_of_Tyrol property:award_received ?y } UNION { resource:Prince_Henry,_Duke_of_Gloucester property:award_received ?z } UNION { resource:Prince_Henry,_Duke_of_Gloucester property:award_received ?y } UNION { resource:Mary,_Princess_Royal_and_Countess_of_Harewood property:award_received ?z } UNION { resource:Mary,_Princess_Royal_and_Countess_of_Harewood property:award_received ?y } UNION { resource:George_VI property:award_received ?z } UNION { resource:George_VI property:award_received ?y } } . ?z rdf:type ontology:order . ?y rdf:type ontology:military_decoration }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant George VI. Could you tell me the answer for that?
(Q280856,P166,c(Q193622)) (Q280856,P166,c(Q1788716)) (Q160770,P166,c(Q193622)) (Q160770,P166,c(Q1788716)) (Q590227,P166,c(Q193622)) (Q590227,P166,c(Q1788716)) (Q310488,P166,c(Q193622)) (Q310488,P166,c(Q1788716)) (Q688408,P166,c(Q193622)) (Q688408,P166,c(Q1788716)) (Q117174,P166,c(Q193622)) (Q117174,P166,c(Q1788716)) (Q233913,P166,c(Q193622)) (Q233913,P166,c(Q1788716)) (Q280856,P166,c(Q193622)) (Q280856,P166,c(Q1788716))
Q280856
['Q280856', 'P166', {'concept': 'Q193622'}] ['Q280856', 'P166', {'concept': 'Q1788716'}] ['Q160770', 'P166', {'concept': 'Q193622'}] ['Q160770', 'P166', {'concept': 'Q1788716'}] ['Q590227', 'P166', {'concept': 'Q193622'}] ['Q590227', 'P166', {'concept': 'Q1788716'}] ['Q310488', 'P166', {'concept': 'Q193622'}] ['Q310488', 'P166', {'concept': 'Q1788716'}] ['Q688408', 'P166', {'concept': 'Q193622'}] ['Q688408', 'P166', {'concept': 'Q1788716'}] ['Q117174', 'P166', {'concept': 'Q193622'}] ['Q117174', 'P166', {'concept': 'Q1788716'}] ['Q233913', 'P166', {'concept': 'Q193622'}] ['Q233913', 'P166', {'concept': 'Q1788716'}] ['Q280856', 'P166', {'concept': 'Q193622'}] ['Q280856', 'P166', {'concept': 'Q1788716'}]
['George VI', 'award received', {'concept': 'order'}] ['George VI', 'award received', {'concept': 'military decoration'}] ['Prince George, Duke of Kent', 'award received', {'concept': 'order'}] ['Prince George, Duke of Kent', 'award received', {'concept': 'military decoration'}] ['Edward VIII', 'award received', {'concept': 'order'}] ['Edward VIII', 'award received', {'concept': 'military decoration'}] ['Prince John of the United Kingdom', 'award received', {'concept': 'order'}] ['Prince John of the United Kingdom', 'award received', {'concept': 'military decoration'}] ['Albert IV, Count of Tyrol', 'award received', {'concept': 'order'}] ['Albert IV, Count of Tyrol', 'award received', {'concept': 'military decoration'}] ['Prince Henry, Duke of Gloucester', 'award received', {'concept': 'order'}] ['Prince Henry, Duke of Gloucester', 'award received', {'concept': 'military decoration'}] ['Mary, Princess Royal and Countess of Harewood', 'award received', {'concept': 'order'}] ['Mary, Princess Royal and Countess of Harewood', 'award received', {'concept': 'military decoration'}] ['George VI', 'award received', {'concept': 'order'}] ['George VI', 'award received', {'concept': 'military decoration'}]
[]
SYSTEM
3 orders and 2 military decorations
Q17552952 Q17231624 Q5361043 Q2990283 Q17200049
(Q280856,P166,c(Q193622)) (Q280856,P166,c(Q1788716)) (Q160770,P166,c(Q193622)) (Q160770,P166,c(Q1788716)) (Q590227,P166,c(Q193622)) (Q590227,P166,c(Q1788716)) (Q310488,P166,c(Q193622)) (Q310488,P166,c(Q1788716)) (Q688408,P166,c(Q193622)) (Q688408,P166,c(Q1788716)) (Q117174,P166,c(Q193622)) (Q117174,P166,c(Q1788716)) (Q233913,P166,c(Q193622)) (Q233913,P166,c(Q1788716)) (Q280856,P166,c(Q193622)) (Q280856,P166,c(Q1788716))
[ANSWER]
['Q280856', 'P166', {'concept': 'Q193622'}] ['Q280856', 'P166', {'concept': 'Q1788716'}] ['Q160770', 'P166', {'concept': 'Q193622'}] ['Q160770', 'P166', {'concept': 'Q1788716'}] ['Q590227', 'P166', {'concept': 'Q193622'}] ['Q590227', 'P166', {'concept': 'Q1788716'}] ['Q310488', 'P166', {'concept': 'Q193622'}] ['Q310488', 'P166', {'concept': 'Q1788716'}] ['Q688408', 'P166', {'concept': 'Q193622'}] ['Q688408', 'P166', {'concept': 'Q1788716'}] ['Q117174', 'P166', {'concept': 'Q193622'}] ['Q117174', 'P166', {'concept': 'Q1788716'}] ['Q233913', 'P166', {'concept': 'Q193622'}] ['Q233913', 'P166', {'concept': 'Q1788716'}] ['Q280856', 'P166', {'concept': 'Q193622'}] ['Q280856', 'P166', {'concept': 'Q1788716'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q280856 property:P166 ?z } UNION { resource:Q280856 property:P166 ?y } UNION { resource:Q160770 property:P166 ?z } UNION { resource:Q160770 property:P166 ?y } UNION { resource:Q590227 property:P166 ?z } UNION { resource:Q590227 property:P166 ?y } UNION { resource:Q310488 property:P166 ?z } UNION { resource:Q310488 property:P166 ?y } UNION { resource:Q688408 property:P166 ?z } UNION { resource:Q688408 property:P166 ?y } UNION { resource:Q117174 property:P166 ?z } UNION { resource:Q117174 property:P166 ?y } UNION { resource:Q233913 property:P166 ?z } UNION { resource:Q233913 property:P166 ?y } UNION { resource:Q280856 property:P166 ?z } UNION { resource:Q280856 property:P166 ?y } } . ?z rdf:type ontology:Q20680311 . ?y rdf:type ontology:Q1788716 }
Grand Cross of the Order of the White Eagle legionnaire of Legion of Merit Grand Cordon of the Supreme Order of the Chrysanthemum Companion of the Liberation Chief Commander of the Legion of Merit
3 orders and 2 military decorations
['George VI', 'award received', {'concept': 'order'}] ['George VI', 'award received', {'concept': 'military decoration'}] ['Prince George, Duke of Kent', 'award received', {'concept': 'order'}] ['Prince George, Duke of Kent', 'award received', {'concept': 'military decoration'}] ['Edward VIII', 'award received', {'concept': 'order'}] ['Edward VIII', 'award received', {'concept': 'military decoration'}] ['Prince John of the United Kingdom', 'award received', {'concept': 'order'}] ['Prince John of the United Kingdom', 'award received', {'concept': 'military decoration'}] ['Albert IV, Count of Tyrol', 'award received', {'concept': 'order'}] ['Albert IV, Count of Tyrol', 'award received', {'concept': 'military decoration'}] ['Prince Henry, Duke of Gloucester', 'award received', {'concept': 'order'}] ['Prince Henry, Duke of Gloucester', 'award received', {'concept': 'military decoration'}] ['Mary, Princess Royal and Countess of Harewood', 'award received', {'concept': 'order'}] ['Mary, Princess Royal and Countess of Harewood', 'award received', {'concept': 'military decoration'}] ['George VI', 'award received', {'concept': 'order'}] ['George VI', 'award received', {'concept': 'military decoration'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:George_VI property:award_received ?z } UNION { resource:George_VI property:award_received ?y } UNION { resource:Prince_George,_Duke_of_Kent property:award_received ?z } UNION { resource:Prince_George,_Duke_of_Kent property:award_received ?y } UNION { resource:Edward_VIII property:award_received ?z } UNION { resource:Edward_VIII property:award_received ?y } UNION { resource:Prince_John_of_the_United_Kingdom property:award_received ?z } UNION { resource:Prince_John_of_the_United_Kingdom property:award_received ?y } UNION { resource:Albert_IV,_Count_of_Tyrol property:award_received ?z } UNION { resource:Albert_IV,_Count_of_Tyrol property:award_received ?y } UNION { resource:Prince_Henry,_Duke_of_Gloucester property:award_received ?z } UNION { resource:Prince_Henry,_Duke_of_Gloucester property:award_received ?y } UNION { resource:Mary,_Princess_Royal_and_Countess_of_Harewood property:award_received ?z } UNION { resource:Mary,_Princess_Royal_and_Countess_of_Harewood property:award_received ?y } UNION { resource:George_VI property:award_received ?z } UNION { resource:George_VI property:award_received ?y } } . ?z rdf:type ontology:order . ?y rdf:type ontology:military_decoration }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1441
Q234460 Q15416 Q502895
USER
Which people are featured in approximately 3 texts or television programs ?
(c(Q502895),P1441,c(Q234460)|c(Q15416))
action approx
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q15416
value 3
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q15416'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?j ) WHERE { ?e rdf:type ?b . VALUES ( ?b ) { ( ontology:Q234460 ) ( ontology:Q15416 ) } } GROUP BY ?q } . FILTER ( ?j = 3 ) }
action approx
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type television program
value 3
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'television program'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?j ) WHERE { ?e rdf:type ?b . VALUES ( ?b ) { ( ontology:text ) ( ontology:television_program ) } } GROUP BY ?q } . FILTER ( ?j = 3 ) }
[]
text television program common name
Q9077 Q41370 Q81422
SYSTEM
Moses, David, Noah
Q9077 Q41370 Q81422
(c(Q502895),P1441,c(Q234460)|c(Q15416))
action approx
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q15416
value 3
[ANSWERS] are featured in approximately 3 texts or television programs
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q15416'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?j ) WHERE { ?e rdf:type ?b . VALUES ( ?b ) { ( ontology:Q234460 ) ( ontology:Q15416 ) } } GROUP BY ?q } . FILTER ( ?j = 3 ) }
Moses David Noah
Moses, David and Noah are featured in approximately 3 texts or television programs
Moses David Noah
action approx
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type television program
value 3
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'television program'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?e ) AS ?j ) WHERE { ?e rdf:type ?b . VALUES ( ?b ) { ( ontology:text ) ( ontology:television_program ) } } GROUP BY ?q } . FILTER ( ?j = 3 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q41370
P1066
Q502895
USER
Who is a pupil of that one ?
(c(Q502895),P1066,Q41370)
action filter_type
action find_reverse
entity Q41370
relation P1066
type Q502895
[{'concept': 'Q502895'}, 'P1066', 'Q41370']
SELECT DISTINCT ?a WHERE { ?a property:P1066 resource:Q41370 . ?a rdf:type ontology:Q502895 }
David
action filter_type
action find_reverse
entity David
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'David']
SELECT DISTINCT ?a WHERE { ?a property:student_of resource:David . ?a rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q41370
SYSTEM
Did you mean David ?
Q9077 Q41370 Q81422
(c(Q502895),P1066,Q9077) (c(Q502895),P1066,Q41370) (c(Q502895),P1066,Q81422)
[ANSWER]
[{'concept': 'Q502895'}, 'P1066', 'Q9077'] [{'concept': 'Q502895'}, 'P1066', 'Q41370'] [{'concept': 'Q502895'}, 'P1066', 'Q81422']
SELECT DISTINCT ?a WHERE { ?a property:P1066 resource:Q41370 . ?a rdf:type ontology:Q502895 }
Moses David Noah
Did you mean David ?
David
[{'concept': 'common name'}, 'student of', 'Moses'] [{'concept': 'common name'}, 'student of', 'David'] [{'concept': 'common name'}, 'student of', 'Noah']
SELECT DISTINCT ?a WHERE { ?a property:student_of resource:David . ?a rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P1066,Q41370)
[{'concept': 'Q502895'}, 'P1066', 'Q41370']
[{'concept': 'common name'}, 'student of', 'David']
[]
Q2590260
SYSTEM
Ahijah the Shilonite
Q2590260
(c(Q502895),P1066,Q41370)
action filter_type
action find_reverse
entity Q41370
relation P1066
type Q502895
A pupil of that one is the [ANSWER]
[{'concept': 'Q502895'}, 'P1066', 'Q41370']
SELECT DISTINCT ?a WHERE { ?a property:P1066 resource:Q41370 . ?a rdf:type ontology:Q502895 }
Ahijah the Shilonite
A pupil of that one is the Ahijah the Shilonite
Ahijah the Shilonite
action filter_type
action find_reverse
entity David
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'David']
SELECT DISTINCT ?a WHERE { ?a property:student_of resource:David . ?a rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35497
P921
Q2342494
USER
What are ancient Greek a main subject of ?
(c(Q2342494),P921,Q35497)
action filter_type
action find_reverse
entity Q35497
relation P921
type Q2342494
[{'concept': 'Q2342494'}, 'P921', 'Q35497']
SELECT DISTINCT ?q WHERE { ?q property:P921 resource:Q35497 . ?q rdf:type ontology:Q2342494 }
ancient Greek
action filter_type
action find_reverse
entity ancient Greek
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'ancient Greek']
SELECT DISTINCT ?q WHERE { ?q property:main_subject resource:ancient_Greek . ?q rdf:type ontology:collectable }
[]
collectable
Q300426 Q3026517
SYSTEM
A Greek–English Lexicon, Diccionario Griego-Español
Q300426 Q3026517
(c(Q2342494),P921,Q35497)
action filter_type
action find_reverse
entity Q35497
relation P921
type Q2342494
Ancient Greek a main subject of are also [ANSWERS]
[{'concept': 'Q2342494'}, 'P921', 'Q35497']
SELECT DISTINCT ?q WHERE { ?q property:P921 resource:Q35497 . ?q rdf:type ontology:Q2342494 }
A Greek–English Lexicon Diccionario Griego-Español
Ancient Greek a main subject of are also A Greek–English Lexicon and Diccionario Griego-Español
A Greek–English Lexicon Diccionario Griego-Español
action filter_type
action find_reverse
entity ancient Greek
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'ancient Greek']
SELECT DISTINCT ?q WHERE { ?q property:main_subject resource:ancient_Greek . ?q rdf:type ontology:collectable }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q300426 Q3026517
P50
Q502895
USER
Which people authored A Greek–English Lexicon and Diccionario Griego-Español ?
(Q300426,P50,c(Q502895)) (Q3026517,P50,c(Q502895))
action union
action filter_type
action find
entity Q300426
relation P50
type Q502895
action filter_type
action find
entity Q3026517
relation P50
type Q502895
['Q300426', 'P50', {'concept': 'Q502895'}] ['Q3026517', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?i property:P50 ?m . VALUES ( ?i ) { ( resource:Q300426 ) ( resource:Q3026517 ) } }
A Greek–English Lexicon Diccionario Griego-Español
action union
action filter_type
action find
entity A Greek–English Lexicon
relation author
type common name
action filter_type
action find
entity Diccionario Griego-Español
relation author
type common name
['A Greek–English Lexicon', 'author', {'concept': 'common name'}] ['Diccionario Griego-Español', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?i property:author ?m . VALUES ( ?i ) { ( resource:A_Greek–English_Lexicon ) ( resource:Diccionario_Griego-Español ) } }
[]
common name
Q649971 Q1096331 Q747540
SYSTEM
Henry Liddell, Francisco Rodríguez Adrados, Robert Scott
Q649971 Q747540 Q1607288 Q1096331
(Q300426,P50,c(Q502895)) (Q3026517,P50,c(Q502895))
action union
action filter_type
action find
entity Q300426
relation P50
type Q502895
action filter_type
action find
entity Q3026517
relation P50
type Q502895
[ANSWERS] authored A Greek–English Lexicon and Diccionario Griego-Español
['Q300426', 'P50', {'concept': 'Q502895'}] ['Q3026517', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?i property:P50 ?m . VALUES ( ?i ) { ( resource:Q300426 ) ( resource:Q3026517 ) } }
Henry Liddell Robert Scott Henry Stuart-Jones Francisco Rodríguez Adrados
Henry Liddell, Francisco Rodríguez Adrados and Robert Scott authored A Greek–English Lexicon and Diccionario Griego-Español
Henry Liddell Francisco Rodríguez Adrados Robert Scott
action union
action filter_type
action find
entity A Greek–English Lexicon
relation author
type common name
action filter_type
action find
entity Diccionario Griego-Español
relation author
type common name
['A Greek–English Lexicon', 'author', {'concept': 'common name'}] ['Diccionario Griego-Español', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?i property:author ?m . VALUES ( ?i ) { ( resource:A_Greek–English_Lexicon ) ( resource:Diccionario_Griego-Español ) } }
[]