Simple Question (Direct)
Simple Question
Q286485
P21
Q290
USER
What is the sex of Léon Gautier ?
(Q286485,P21,c(Q290))
action filter_type
action find
entity Q286485
relation P21
type Q290
['Q286485', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q286485 property:P21 ?b . ?b rdf:type ontology:Q290 }
Léon Gautier
action filter_type
action find
entity Léon Gautier
relation gender
type sex
['Léon Gautier', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Léon_Gautier property:gender ?b . ?b rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q286485,P21,c(Q290))
action filter_type
action find
entity Q286485
relation P21
type Q290
The sex of Léon Gautier is the [ANSWER]
['Q286485', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?b WHERE { resource:Q286485 property:P21 ?b . ?b rdf:type ontology:Q290 }
male
The sex of Léon Gautier is the male
male
action filter_type
action find
entity Léon Gautier
relation gender
type sex
['Léon Gautier', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?b WHERE { resource:Léon_Gautier property:gender ?b . ?b rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q286485
P20
Q56061
USER
Where did the demise of Léon Gautier occur ?
(Q286485,P20,c(Q56061))
action filter_type
action find
entity Q286485
relation P20
type Q56061
['Q286485', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q286485 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Léon Gautier
action filter_type
action find
entity Léon Gautier
relation place of death
type administrative territorial entity
['Léon Gautier', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Léon_Gautier property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q286485,P20,c(Q56061))
action filter_type
action find
entity Q286485
relation P20
type Q56061
The demise of Léon Gautier occurred in [ANSWER]
['Q286485', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q286485 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Paris
The demise of Léon Gautier occurred in Paris
Paris
action filter_type
action find
entity Léon Gautier
relation place of death
type administrative territorial entity
['Léon Gautier', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Léon_Gautier property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q456413
Q56061
USER
And what about Clare Boothe Luce?
(Q456413,P20,c(Q56061))
action filter_type
action find
entity Q456413
relation P20
type Q56061
['Q456413', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q456413 property:P20 ?k }
Clare Boothe Luce
action filter_type
action find
entity Clare Boothe Luce
relation place of death
type administrative territorial entity
['Clare Boothe Luce', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:Clare_Boothe_Luce property:place_of_death ?k }
[]
administrative territorial entity
Q61
SYSTEM
Washington, D.C.
Q61
(Q456413,P20,c(Q56061))
action filter_type
action find
entity Q456413
relation P20
type Q56061
[ANSWER]
['Q456413', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q456413 property:P20 ?k }
Washington, D.C.
Washington, D.C.
action filter_type
action find
entity Clare Boothe Luce
relation place of death
type administrative territorial entity
['Clare Boothe Luce', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:Clare_Boothe_Luce property:place_of_death ?k }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q61
P47
Q355304 Q852446
USER
How many watercourses or US administrative territories have a shared border with Washington, D.C. ?
(Q61,P47,c(Q355304)) (Q61,P47,c(Q852446))
action count
action union
action filter_type
action find
entity Q61
relation P47
type Q355304
action filter_type
action find
entity Q61
relation P47
type Q852446
['Q61', 'P47', {'concept': 'Q355304'}] ['Q61', 'P47', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { { ?r rdf:type ontology:Q355304 . resource:Q61 property:P47 ?r } UNION { resource:Q61 property:P47 ?r . ?r rdf:type ontology:Q852446 } }
Washington, D.C.
action count
action union
action filter_type
action find
entity Washington, D.C.
relation shares border with
type watercourse
action filter_type
action find
entity Washington, D.C.
relation shares border with
type administrative territorial entity of the United States
['Washington, D.C.', 'shares border with', {'concept': 'watercourse'}] ['Washington, D.C.', 'shares border with', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { { ?r rdf:type ontology:watercourse . resource:Washington,_D.C. property:shares_border_with ?r } UNION { resource:Washington,_D.C. property:shares_border_with ?r . ?r rdf:type ontology:administrative_territorial_entity_of_the_United_States } }
[]
watercourse administrative territorial entity of the United States
SYSTEM
3
Q179444 Q1391 Q1370
(Q61,P47,c(Q355304)) (Q61,P47,c(Q852446))
action count
action union
action filter_type
action find
entity Q61
relation P47
type Q355304
action filter_type
action find
entity Q61
relation P47
type Q852446
[ANSWER]
['Q61', 'P47', {'concept': 'Q355304'}] ['Q61', 'P47', {'concept': 'Q852446'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { { ?r rdf:type ontology:Q355304 . resource:Q61 property:P47 ?r } UNION { resource:Q61 property:P47 ?r . ?r rdf:type ontology:Q852446 } }
Potomac River Maryland Virginia
3
action count
action union
action filter_type
action find
entity Washington, D.C.
relation shares border with
type watercourse
action filter_type
action find
entity Washington, D.C.
relation shares border with
type administrative territorial entity of the United States
['Washington, D.C.', 'shares border with', {'concept': 'watercourse'}] ['Washington, D.C.', 'shares border with', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { { ?r rdf:type ontology:watercourse . resource:Washington,_D.C. property:shares_border_with ?r } UNION { resource:Washington,_D.C. property:shares_border_with ?r . ?r rdf:type ontology:administrative_territorial_entity_of_the_United_States } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q90
P126
Q43229 Q874405
USER
How many organizations or social groups comes under the administration of Paris ?
(c(Q43229),P126,Q90) (c(Q874405),P126,Q90)
action count
action union
action filter_type
action find_reverse
entity Q90
relation P126
type Q43229
action filter_type
action find_reverse
entity Q90
relation P126
type Q874405
[{'concept': 'Q43229'}, 'P126', 'Q90'] [{'concept': 'Q874405'}, 'P126', 'Q90']
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { ?w property:P126 resource:Q90 . ?w rdf:type ontology:Q874405 } UNION { ?w property:P126 resource:Q90 . ?w rdf:type ontology:Q43229 } }
Paris
action count
action union
action filter_type
action find_reverse
entity Paris
relation maintained by
type organization
action filter_type
action find_reverse
entity Paris
relation maintained by
type social group
[{'concept': 'organization'}, 'maintained by', 'Paris'] [{'concept': 'social group'}, 'maintained by', 'Paris']
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { ?w property:maintained_by resource:Paris . ?w rdf:type ontology:social_group } UNION { ?w property:maintained_by resource:Paris . ?w rdf:type ontology:organization } }
[]
organization social group
SYSTEM
2
Q2972684 Q3330843
(c(Q43229),P126,Q90) (c(Q874405),P126,Q90)
action count
action union
action filter_type
action find_reverse
entity Q90
relation P126
type Q43229
action filter_type
action find_reverse
entity Q90
relation P126
type Q874405
[ANSWER]
[{'concept': 'Q43229'}, 'P126', 'Q90'] [{'concept': 'Q874405'}, 'P126', 'Q90']
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { ?w property:P126 resource:Q90 . ?w rdf:type ontology:Q874405 } UNION { ?w property:P126 resource:Q90 . ?w rdf:type ontology:Q43229 } }
Parisian cemetery musée de la ville de Paris
2
action count
action union
action filter_type
action find_reverse
entity Paris
relation maintained by
type organization
action filter_type
action find_reverse
entity Paris
relation maintained by
type social group
[{'concept': 'organization'}, 'maintained by', 'Paris'] [{'concept': 'social group'}, 'maintained by', 'Paris']
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { ?w property:maintained_by resource:Paris . ?w rdf:type ontology:social_group } UNION { ?w property:maintained_by resource:Paris . ?w rdf:type ontology:organization } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19404522 Q61
P276 P190
Q56061
USER
Which administrative territories are the sister cities of Washington, D.C. or are Padangstraat located ?
OR((Q61,P190,c(Q56061)), (Q19404522,P276,c(Q56061)))
action filter_type
action union
action find
entity Q61
relation P190
action find
entity Q19404522
relation P276
type Q56061
{'OR': [['Q61', 'P190', {'concept': 'Q56061'}], ['Q19404522', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q61 property:P190 ?z } UNION { resource:Q19404522 property:P276 ?z } } . ?z rdf:type ontology:Q56061 }
Padangstraat Washington, D.C.
action filter_type
action union
action find
entity Washington, D.C.
relation sister city
action find
entity Padangstraat
relation location
type administrative territorial entity
{'OR': [['Washington, D.C.', 'sister city', {'concept': 'administrative territorial entity'}], ['Padangstraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Washington,_D.C. property:sister_city ?z } UNION { resource:Padangstraat property:location ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3718 Q1491 Q1861 Q3640 Q956 Q239 Q987 Q3761 Q749 Q1524
SYSTEM
Some of them are Dakar, La Paz, Bangkok, Ankara, Beijing, Brussels, New Delhi, Accra, Groningen, Athens
Q987 Q3718 Q239 Q3761 Q1524 Q956 Q749 Q1861 Q3640 Q1491 Q585 Q188304
OR((Q61,P190,c(Q56061)), (Q19404522,P276,c(Q56061)))
action filter_type
action union
action find
entity Q61
relation P190
action find
entity Q19404522
relation P276
type Q56061
[ANSWERS] are the sister cities of Washington, D.C. or are Padangstraat located
{'OR': [['Q61', 'P190', {'concept': 'Q56061'}], ['Q19404522', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q61 property:P190 ?z } UNION { resource:Q19404522 property:P276 ?z } } . ?z rdf:type ontology:Q56061 }
New Delhi Dakar Brussels Accra Athens Beijing Groningen Bangkok Ankara La Paz Oslo Sunderland
Dakar, La Paz, Bangkok, Ankara, Beijing, Brussels, New Delhi, Accra, Groningen and Athens are the sister cities of Washington, D.C. or are Padangstraat located
Dakar La Paz Bangkok Ankara Beijing Brussels New Delhi Accra Groningen Athens
action filter_type
action union
action find
entity Washington, D.C.
relation sister city
action find
entity Padangstraat
relation location
type administrative territorial entity
{'OR': [['Washington, D.C.', 'sister city', {'concept': 'administrative territorial entity'}], ['Padangstraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Washington,_D.C. property:sister_city ?z } UNION { resource:Padangstraat property:location ?z } } . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q27607958
P361
Q18608583
USER
What is 1956 German Badminton Championships – Men's doubles a part of ?
(Q27607958,P361,c(Q18608583))
action filter_type
action find
entity Q27607958
relation P361
type Q18608583
['Q27607958', 'P361', {'concept': 'Q18608583'}]
SELECT DISTINCT ?e WHERE { resource:Q27607958 property:P361 ?e . ?e rdf:type ontology:Q18608583 }
1956 German Badminton Championships – Men's doubles
action filter_type
action find
entity 1956 German Badminton Championships – Men's doubles
relation part of
type recurring sporting event
["1956 German Badminton Championships – Men's doubles", 'part of', {'concept': 'recurring sporting event'}]
SELECT DISTINCT ?e WHERE { resource:1956_German_Badminton_Championships_–_Men's_doubles property:part_of ?e . ?e rdf:type ontology:recurring_sporting_event }
[]
recurring sporting event
Q1202099
SYSTEM
1956 German Badminton Championships
Q1202099
(Q27607958,P361,c(Q18608583))
action filter_type
action find
entity Q27607958
relation P361
type Q18608583
– [ANSWER] is about [ANSWER]
['Q27607958', 'P361', {'concept': 'Q18608583'}]
SELECT DISTINCT ?e WHERE { resource:Q27607958 property:P361 ?e . ?e rdf:type ontology:Q18608583 }
1956 German Badminton Championships
– 1956 German Badminton Championships is about 1956 German Badminton Championships
1956 German Badminton Championships
action filter_type
action find
entity 1956 German Badminton Championships – Men's doubles
relation part of
type recurring sporting event
["1956 German Badminton Championships – Men's doubles", 'part of', {'concept': 'recurring sporting event'}]
SELECT DISTINCT ?e WHERE { resource:1956_German_Badminton_Championships_–_Men's_doubles property:part_of ?e . ?e rdf:type ontology:recurring_sporting_event }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q456413
P58
Q838948
USER
How many works of art have Clare Boothe Luce as screenwriter ?
(c(Q838948),P58,Q456413)
action count
action filter_type
action find_reverse
entity Q456413
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q456413']
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { ?c rdf:type ontology:Q838948 . ?c property:P58 resource:Q456413 }
Clare Boothe Luce
action count
action filter_type
action find_reverse
entity Clare Boothe Luce
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Clare Boothe Luce']
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { ?c rdf:type ontology:work_of_art . ?c property:screenwriter resource:Clare_Boothe_Luce }
[]
work of art
SYSTEM
2
Q426482 Q348678
(c(Q838948),P58,Q456413)
action count
action filter_type
action find_reverse
entity Q456413
relation P58
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P58', 'Q456413']
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { ?c rdf:type ontology:Q838948 . ?c property:P58 resource:Q456413 }
Come to the Stable The Women
2
action count
action filter_type
action find_reverse
entity Clare Boothe Luce
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Clare Boothe Luce']
SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { ?c rdf:type ontology:work_of_art . ?c property:screenwriter resource:Clare_Boothe_Luce }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q5442123
P106
Q28640
USER
What does Felix Adler do for a living ?
(Q5442123,P106,c(Q28640))
action filter_type
action find
entity Q5442123
relation P106
type Q28640
['Q5442123', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?w WHERE { resource:Q5442123 property:P106 ?w . ?w rdf:type ontology:Q28640 }
Felix Adler
action filter_type
action find
entity Felix Adler
relation occupation
type profession
['Felix Adler', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?w WHERE { resource:Felix_Adler property:occupation ?w . ?w rdf:type ontology:profession }
[]
profession
Q28389
SYSTEM
screenwriter
Q28389
(Q5442123,P106,c(Q28640))
action filter_type
action find
entity Q5442123
relation P106
type Q28640
Felix Adler does for a living as [ANSWER]
['Q5442123', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?w WHERE { resource:Q5442123 property:P106 ?w . ?w rdf:type ontology:Q28640 }
screenwriter
Felix Adler does for a living as screenwriter
screenwriter
action filter_type
action find
entity Felix Adler
relation occupation
type profession
['Felix Adler', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?w WHERE { resource:Felix_Adler property:occupation ?w . ?w rdf:type ontology:profession }
[]