Simple Question (Direct)
Simple Question
Q5081699
P106
Q12737077
USER
What are the professions of Charles Plumpton Wilson ?
(Q5081699,P106,c(Q12737077))
action filter_type
action find
entity Q5081699
relation P106
type Q12737077
['Q5081699', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q5081699 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
Charles Plumpton Wilson
action filter_type
action find
entity Charles Plumpton Wilson
relation occupation
type occupation
['Charles Plumpton Wilson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Charles_Plumpton_Wilson property:occupation ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q14089670 Q12299841 Q937857
SYSTEM
rugby union player, cricketer, association football player
Q14089670 Q12299841 Q937857
(Q5081699,P106,c(Q12737077))
action filter_type
action find
entity Q5081699
relation P106
type Q12737077
The professions of Charles Plumpton Wilson are a [ANSWERS]
['Q5081699', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q5081699 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
rugby union player cricketer association football player
The professions of Charles Plumpton Wilson are a rugby union player, cricketer and association football player
rugby union player cricketer association football player
action filter_type
action find
entity Charles Plumpton Wilson
relation occupation
type occupation
['Charles Plumpton Wilson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:Charles_Plumpton_Wilson property:occupation ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5081699
P21
Q290
USER
Which sex does Charles Plumpton Wilson belong to ?
(Q5081699,P21,c(Q290))
action filter_type
action find
entity Q5081699
relation P21
type Q290
['Q5081699', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q5081699 property:P21 ?p }
Charles Plumpton Wilson
action filter_type
action find
entity Charles Plumpton Wilson
relation gender
type sex
['Charles Plumpton Wilson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Charles_Plumpton_Wilson property:gender ?p }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5081699,P21,c(Q290))
action filter_type
action find
entity Q5081699
relation P21
type Q290
Charles Plumpton Wilson belongs to [ANSWER]
['Q5081699', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q5081699 property:P21 ?p }
male
Charles Plumpton Wilson belongs to male
male
action filter_type
action find
entity Charles Plumpton Wilson
relation gender
type sex
['Charles Plumpton Wilson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Charles_Plumpton_Wilson property:gender ?p }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7382925
Q290
USER
And also tell me about Ruth Cohen?
(Q7382925,P21,c(Q290))
action filter_type
action find
entity Q7382925
relation P21
type Q290
['Q7382925', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q7382925 property:P21 ?j . ?j rdf:type ontology:Q290 }
Ruth Cohen
action filter_type
action find
entity Ruth Cohen
relation gender
type sex
['Ruth Cohen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Ruth_Cohen property:gender ?j . ?j rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q7382925,P21,c(Q290))
action filter_type
action find
entity Q7382925
relation P21
type Q290
[ANSWER]
['Q7382925', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?j WHERE { resource:Q7382925 property:P21 ?j . ?j rdf:type ontology:Q290 }
female
female
action filter_type
action find
entity Ruth Cohen
relation gender
type sex
['Ruth Cohen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?j WHERE { resource:Ruth_Cohen property:gender ?j . ?j rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581072 Q16933702
P21
Q502895
USER
Does Nino Nakashidze have that sex as the sex ?
(Q16933702,P21,Q6581072)
action is_in
entity Q6581072
action find
entity Q16933702
relation P21
['Q16933702', 'P21', 'Q6581072']
ASK WHERE { resource:Q16933702 property:P21 resource:Q6581072 }
female Nino Nakashidze
action is_in
entity female
action find
entity Nino Nakashidze
relation gender
['Nino Nakashidze', 'gender', 'female']
ASK WHERE { resource:Nino_Nakashidze property:gender resource:female }
[]
common name
SYSTEM
YES
(Q16933702,P21,Q6581072)
action is_in
entity Q6581072
action find
entity Q16933702
relation P21
[ANSWER]
['Q16933702', 'P21', 'Q6581072']
ASK WHERE { resource:Q16933702 property:P21 resource:Q6581072 }
Yes
action is_in
entity female
action find
entity Nino Nakashidze
relation gender
['Nino Nakashidze', 'gender', 'female']
ASK WHERE { resource:Nino_Nakashidze property:gender resource:female }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q5081699 Q2934697 Q378628
P54
Q12973014
USER
Is Charles Plumpton Wilson a member of Cambridge University R.U.F.C. and England national rugby union team ?
(Q5081699,P54,Q2934697) (Q5081699,P54,Q378628)
action is_in
entity Q5081699
action intersection
action find_reverse
entity Q2934697
relation P54
action find_reverse
entity Q378628
relation P54
['Q5081699', 'P54', 'Q2934697'] ['Q5081699', 'P54', 'Q378628']
ASK WHERE { resource:Q5081699 property:P54 resource:Q2934697 . resource:Q5081699 property:P54 resource:Q378628 }
Charles Plumpton Wilson Cambridge University R.U.F.C. England national rugby union team
action is_in
entity Charles Plumpton Wilson
action intersection
action find_reverse
entity Cambridge University R.U.F.C.
relation member of sports team
action find_reverse
entity England national rugby union team
relation member of sports team
['Charles Plumpton Wilson', 'member of sports team', 'Cambridge University R.U.F.C.'] ['Charles Plumpton Wilson', 'member of sports team', 'England national rugby union team']
ASK WHERE { resource:Charles_Plumpton_Wilson property:member_of_sports_team resource:Cambridge_University_R.U.F.C. . resource:Charles_Plumpton_Wilson property:member_of_sports_team resource:England_national_rugby_union_team }
[]
sports team
SYSTEM
YES
(Q5081699,P54,Q2934697) (Q5081699,P54,Q378628)
action is_in
entity Q5081699
action intersection
action find_reverse
entity Q2934697
relation P54
action find_reverse
entity Q378628
relation P54
[ANSWER]
['Q5081699', 'P54', 'Q2934697'] ['Q5081699', 'P54', 'Q378628']
ASK WHERE { resource:Q5081699 property:P54 resource:Q2934697 . resource:Q5081699 property:P54 resource:Q378628 }
Yes
action is_in
entity Charles Plumpton Wilson
action intersection
action find_reverse
entity Cambridge University R.U.F.C.
relation member of sports team
action find_reverse
entity England national rugby union team
relation member of sports team
['Charles Plumpton Wilson', 'member of sports team', 'Cambridge University R.U.F.C.'] ['Charles Plumpton Wilson', 'member of sports team', 'England national rugby union team']
ASK WHERE { resource:Charles_Plumpton_Wilson property:member_of_sports_team resource:Cambridge_University_R.U.F.C. . resource:Charles_Plumpton_Wilson property:member_of_sports_team resource:England_national_rugby_union_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5081699
P69
Q41176
USER
Which building is the alma mater of that person ?
action filter_type
action find
entity Q5081699
relation P69
type Q41176
SELECT DISTINCT ?l WHERE { resource:Q5081699 property:P69 ?l . ?l rdf:type ontology:Q41176 }
Charles Plumpton Wilson
action filter_type
action find
entity Charles Plumpton Wilson
relation educated at
type building
SELECT DISTINCT ?l WHERE { resource:Charles_Plumpton_Wilson property:educated_at ?l . ?l rdf:type ontology:building }
[]
building
Q332342
SYSTEM
Trinity College, Cambridge
Q332342
action filter_type
action find
entity Q5081699
relation P69
type Q41176
[ANSWER] is the alma mater of that person
SELECT DISTINCT ?l WHERE { resource:Q5081699 property:P69 ?l . ?l rdf:type ontology:Q41176 }
Trinity College, Cambridge
Trinity College, Cambridge is the alma mater of that person
Trinity College, Cambridge
action filter_type
action find
entity Charles Plumpton Wilson
relation educated at
type building
SELECT DISTINCT ?l WHERE { resource:Charles_Plumpton_Wilson property:educated_at ?l . ?l rdf:type ontology:building }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q717105
P180
Q41176 Q3305213 Q15709879
USER
Which buildings are expressed in more number of paintings and artwork series than Arvfurstens palats ?
(c(Q3305213)|c(Q15709879),P180,c(Q41176))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q41176
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q41176
type Q15709879
action count
action filter_multi_types
action find_reverse
entity Q717105
relation P180
type Q3305213
type Q15709879
[[{'concept': 'Q3305213'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q41176'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) ?f WHERE { { ?h property:P180 ?f . ?f rdf:type ontology:Q41176 . ?h rdf:type ontology:Q3305213 } UNION { ?h property:P180 ?f . ?h rdf:type ontology:Q15709879 . ?f rdf:type ontology:Q41176 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { ?p property:P180 resource:Q717105 . { { ?p rdf:type ontology:Q3305213 } UNION { ?p rdf:type ontology:Q15709879 } } } } . FILTER ( ?s > ?j ) }
Arvfurstens palats
action greater
action union
action find_reverse_tuple_counts
relation depicts
type building
type painting
action find_reverse_tuple_counts
relation depicts
type building
type artwork series
action count
action filter_multi_types
action find_reverse
entity Arvfurstens palats
relation depicts
type painting
type artwork series
[[{'concept': 'painting'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'building'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) ?f WHERE { { ?h property:depicts ?f . ?f rdf:type ontology:building . ?h rdf:type ontology:painting } UNION { ?h property:depicts ?f . ?h rdf:type ontology:artwork_series . ?f rdf:type ontology:building } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { ?p property:depicts resource:Arvfurstens_palats . { { ?p rdf:type ontology:painting } UNION { ?p rdf:type ontology:artwork_series } } } } . FILTER ( ?s > ?j ) }
[]
building painting artwork series
Q42646 Q193193 Q182147
SYSTEM
Windsor Castle, Sainte Chapelle, Winter Palace
Q2047247 Q16970 Q1219688 Q170544 Q34627 Q182147 Q918230 Q1992203 Q193193 Q189883 Q42646 Q209937 Q7461 Q430792 Q3983167 Q746063 Q5784097 Q211818 Q731284 Q659138 Q83405 Q267596 Q1303167
(c(Q3305213)|c(Q15709879),P180,c(Q41176))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q41176
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q41176
type Q15709879
action count
action filter_multi_types
action find_reverse
entity Q717105
relation P180
type Q3305213
type Q15709879
[ANSWERS] are expressed in more number of paintings and artwork series than Arvfurstens palats
[[{'concept': 'Q3305213'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q41176'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) ?f WHERE { { ?h property:P180 ?f . ?f rdf:type ontology:Q41176 . ?h rdf:type ontology:Q3305213 } UNION { ?h property:P180 ?f . ?h rdf:type ontology:Q15709879 . ?f rdf:type ontology:Q41176 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { ?p property:P180 resource:Q717105 . { { ?p rdf:type ontology:Q3305213 } UNION { ?p rdf:type ontology:Q15709879 } } } } . FILTER ( ?s > ?j ) }
Palais de la Cité church Temple of Vesta tent synagogue Winter Palace Roman villa temple of Diana Sainte Chapelle Doge's Palace Windsor Castle Vienna State Opera Gatchina Palace Temple of Venus and Roma Temple of Clitumnus Villa d'Este hut Belvedere Temple of Vespasian and Titus Theatre of Marcellus factory ancient Greek temple barn
Windsor Castle, Sainte Chapelle and Winter Palace are expressed in more number of paintings and artwork series than Arvfurstens palats
Windsor Castle Sainte Chapelle Winter Palace
action greater
action union
action find_reverse_tuple_counts
relation depicts
type building
type painting
action find_reverse_tuple_counts
relation depicts
type building
type artwork series
action count
action filter_multi_types
action find_reverse
entity Arvfurstens palats
relation depicts
type painting
type artwork series
[[{'concept': 'painting'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'building'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?s ) ?f WHERE { { ?h property:depicts ?f . ?f rdf:type ontology:building . ?h rdf:type ontology:painting } UNION { ?h property:depicts ?f . ?h rdf:type ontology:artwork_series . ?f rdf:type ontology:building } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { ?p property:depicts resource:Arvfurstens_palats . { { ?p rdf:type ontology:painting } UNION { ?p rdf:type ontology:artwork_series } } } } . FILTER ( ?s > ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q9188
P180
Q41176 Q3305213 Q15709879
USER
And how about Empire State Building?
(c(Q3305213)|c(Q15709879),P180,c(Q41176))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q41176
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q41176
type Q15709879
action count
action filter_multi_types
action find_reverse
entity Q9188
relation P180
type Q3305213
type Q15709879
[[{'concept': 'Q3305213'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q41176'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) ?r WHERE { VALUES ( ?l ) { ( ontology:Q3305213 ) ( ontology:Q15709879 ) } . ?u rdf:type ?l } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:P180 resource:Q9188 . { { ?y rdf:type ontology:Q3305213 } UNION { ?y rdf:type ontology:Q15709879 } } } } . FILTER ( ?h > ?i ) }
Empire State Building
action greater
action union
action find_reverse_tuple_counts
relation depicts
type building
type painting
action find_reverse_tuple_counts
relation depicts
type building
type artwork series
action count
action filter_multi_types
action find_reverse
entity Empire State Building
relation depicts
type painting
type artwork series
[[{'concept': 'painting'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'building'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) ?r WHERE { VALUES ( ?l ) { ( ontology:painting ) ( ontology:artwork_series ) } . ?u rdf:type ?l } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:depicts resource:Empire_State_Building . { { ?y rdf:type ontology:painting } UNION { ?y rdf:type ontology:artwork_series } } } } . FILTER ( ?h > ?i ) }
[]
building painting artwork series
Q42646 Q193193 Q182147
SYSTEM
Windsor Castle, Sainte Chapelle, Winter Palace
Q2047247 Q16970 Q1219688 Q170544 Q34627 Q182147 Q918230 Q1992203 Q193193 Q189883 Q42646 Q209937 Q7461 Q430792 Q3983167 Q746063 Q5784097 Q211818 Q731284 Q659138 Q83405 Q267596 Q1303167
(c(Q3305213)|c(Q15709879),P180,c(Q41176))
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q41176
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q41176
type Q15709879
action count
action filter_multi_types
action find_reverse
entity Q9188
relation P180
type Q3305213
type Q15709879
[ANSWERS]
[[{'concept': 'Q3305213'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q41176'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) ?r WHERE { VALUES ( ?l ) { ( ontology:Q3305213 ) ( ontology:Q15709879 ) } . ?u rdf:type ?l } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:P180 resource:Q9188 . { { ?y rdf:type ontology:Q3305213 } UNION { ?y rdf:type ontology:Q15709879 } } } } . FILTER ( ?h > ?i ) }
Palais de la Cité church Temple of Vesta tent synagogue Winter Palace Roman villa temple of Diana Sainte Chapelle Doge's Palace Windsor Castle Vienna State Opera Gatchina Palace Temple of Venus and Roma Temple of Clitumnus Villa d'Este hut Belvedere Temple of Vespasian and Titus Theatre of Marcellus factory ancient Greek temple barn
Windsor Castle Sainte Chapelle Winter Palace
action greater
action union
action find_reverse_tuple_counts
relation depicts
type building
type painting
action find_reverse_tuple_counts
relation depicts
type building
type artwork series
action count
action filter_multi_types
action find_reverse
entity Empire State Building
relation depicts
type painting
type artwork series
[[{'concept': 'painting'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'building'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) ?r WHERE { VALUES ( ?l ) { ( ontology:painting ) ( ontology:artwork_series ) } . ?u rdf:type ?l } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:depicts resource:Empire_State_Building . { { ?y rdf:type ontology:painting } UNION { ?y rdf:type ontology:artwork_series } } } } . FILTER ( ?h > ?i ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581072 Q42646
P19 P21
Q502895
USER
Which people have birthplace at Windsor Castle and are a female ?
AND((c(Q502895),P19,Q42646), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q42646
relation P19
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q42646'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?v WHERE { ?v property:P19 resource:Q42646 . ?v property:P21 resource:Q6581072 . ?v rdf:type ontology:Q502895 }
female Windsor Castle
action filter_type
action intersection
action find_reverse
entity Windsor Castle
relation place of birth
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Windsor Castle'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?v WHERE { ?v property:place_of_birth resource:Windsor_Castle . ?v property:gender resource:female . ?v rdf:type ontology:common_name }
[]
common name
Q235521 Q57658 Q2667593 Q235484 Q242317 Q257604 Q235482 Q116062 Q755721 Q1796668
SYSTEM
Princess Alice, Countess of Athlone, Princess Victoria of Hesse and by Rhine, Margaret of England, Duchess of Brabant, Matilda of England, Duchess of Saxony, Margaret of England, Princess Amelia of the United Kingdom, Margaret of Scotland, Queen of Norway, Princess Alice of Battenberg, Mary of York, Margaret, Countess of Pembroke
Q235521 Q57658 Q2667593 Q235484 Q242317 Q257604 Q235482 Q116062 Q755721 Q1796668
AND((c(Q502895),P19,Q42646), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q42646
relation P19
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q42646'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?v WHERE { ?v property:P19 resource:Q42646 . ?v property:P21 resource:Q6581072 . ?v rdf:type ontology:Q502895 }
Princess Alice, Countess of Athlone Princess Victoria of Hesse and by Rhine Margaret of England, Duchess of Brabant Matilda of England, Duchess of Saxony Margaret of England Princess Amelia of the United Kingdom Margaret of Scotland, Queen of Norway Princess Alice of Battenberg Mary of York Margaret, Countess of Pembroke
Princess Alice, Countess of Athlone, Princess Victoria of Hesse and by Rhine, Margaret of England, Duchess of Brabant, Matilda of England, Duchess of Saxony, Margaret of England, Princess Amelia of the United Kingdom, Margaret of Scotland, Queen of Norway, Princess Alice of Battenberg, Mary of York and Margaret, Countess of Pembroke have birthplace at Windsor Castle and are a female
Princess Alice, Countess of Athlone Princess Victoria of Hesse and by Rhine Margaret of England, Duchess of Brabant Matilda of England, Duchess of Saxony Margaret of England Princess Amelia of the United Kingdom Margaret of Scotland, Queen of Norway Princess Alice of Battenberg Mary of York Margaret, Countess of Pembroke
action filter_type
action intersection
action find_reverse
entity Windsor Castle
relation place of birth
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Windsor Castle'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?v WHERE { ?v property:place_of_birth resource:Windsor_Castle . ?v property:gender resource:female . ?v rdf:type ontology:common_name }
[]