Simple Question (Direct)
Simple Question
Q3882467
P54
Q1194951
USER
Which national sports team is Andrej Daňko a member of ?
(Q3882467,P54,c(Q1194951))
action filter_type
action find
entity Q3882467
relation P54
type Q1194951
['Q3882467', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?o WHERE { resource:Q3882467 property:P54 ?o . ?o rdf:type ontology:Q1194951 }
Andrej Daňko
action filter_type
action find
entity Andrej Daňko
relation member of sports team
type national sports team
['Andrej Daňko', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?o WHERE { resource:Andrej_Daňko property:member_of_sports_team ?o . ?o rdf:type ontology:national_sports_team }
[]
national sports team
Q182072
SYSTEM
Czechoslovakia national football team
Q182072
(Q3882467,P54,c(Q1194951))
action filter_type
action find
entity Q3882467
relation P54
type Q1194951
The [ANSWER] is Andrej Daňko a member of
['Q3882467', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?o WHERE { resource:Q3882467 property:P54 ?o . ?o rdf:type ontology:Q1194951 }
Czechoslovakia national football team
The Czechoslovakia national football team is Andrej Daňko a member of
Czechoslovakia national football team
action filter_type
action find
entity Andrej Daňko
relation member of sports team
type national sports team
['Andrej Daňko', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?o WHERE { resource:Andrej_Daňko property:member_of_sports_team ?o . ?o rdf:type ontology:national_sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3882467
P21
Q290
USER
Which sex does Andrej Daňko belong to ?
(Q3882467,P21,c(Q290))
action filter_type
action find
entity Q3882467
relation P21
type Q290
['Q3882467', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q3882467 property:P21 ?o . ?o rdf:type ontology:Q290 }
Andrej Daňko
action filter_type
action find
entity Andrej Daňko
relation gender
type sex
['Andrej Daňko', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Andrej_Daňko property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3882467,P21,c(Q290))
action filter_type
action find
entity Q3882467
relation P21
type Q290
Andrej Daňko belongs to [ANSWER]
['Q3882467', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q3882467 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
Andrej Daňko belongs to male
male
action filter_type
action find
entity Andrej Daňko
relation gender
type sex
['Andrej Daňko', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Andrej_Daňko property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3882467
P106
Q12737077
USER
What do that person do for a living ?
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q3882467
relation P106
type Q12737077
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q3882467 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Andrej Daňko
action filter_type
action find
entity Andrej Daňko
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Andrej_Daňko property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q628099 Q937857
SYSTEM
association football manager, association football player
Q628099 Q937857
(Q6581097,P106,c(Q12737077))
action filter_type
action find
entity Q3882467
relation P106
type Q12737077
And [ANSWERS] that person do for a living
['Q6581097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q3882467 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
association football manager association football player
And association football manager and association football player that person do for a living
association football manager association football player
action filter_type
action find
entity Andrej Daňko
relation occupation
type occupation
['male', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Andrej_Daňko property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q15903124
P106
Q502895
USER
Do Saral have those occupations as his/her means of employment ?
(Q15903124,P106,Q628099) (Q15903124,P106,Q937857)
action is_in
entity prev_answer
action find
entity Q15903124
relation P106
['Q15903124', 'P106', 'Q628099'] ['Q15903124', 'P106', 'Q937857']
ASK WHERE { resource:Q15903124 property:P106 ?n . VALUES ( ?n ) { ( resource:Q628099 ) ( resource:Q937857 ) } }
Saral
action is_in
entity prev_answer
action find
entity Saral
relation occupation
['Saral', 'occupation', 'association football manager'] ['Saral', 'occupation', 'association football player']
ASK WHERE { resource:Saral property:occupation ?n . VALUES ( ?n ) { ( resource:association_football_manager ) ( resource:association_football_player ) } }
[]
common name
SYSTEM
NO
(Q15903124,P106,Q628099) (Q15903124,P106,Q937857)
action is_in
entity prev_answer
action find
entity Q15903124
relation P106
[ANSWER]
['Q15903124', 'P106', 'Q628099'] ['Q15903124', 'P106', 'Q937857']
ASK WHERE { resource:Q15903124 property:P106 ?n . VALUES ( ?n ) { ( resource:Q628099 ) ( resource:Q937857 ) } }
No
action is_in
entity prev_answer
action find
entity Saral
relation occupation
['Saral', 'occupation', 'association football manager'] ['Saral', 'occupation', 'association football player']
ASK WHERE { resource:Saral property:occupation ?n . VALUES ( ?n ) { ( resource:association_football_manager ) ( resource:association_football_player ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q182072 Q917382 Q1821177
P1344
Q15275719
USER
Did Czechoslovakia national football team competite in Bring Your Own Film Festival and Latvian Team Badminton Championships ?
(Q182072,P1344,Q917382) (Q182072,P1344,Q1821177)
action is_in
entity Q182072
action intersection
action find_reverse
entity Q917382
relation P1344
action find_reverse
entity Q1821177
relation P1344
['Q182072', 'P1344', 'Q917382'] ['Q182072', 'P1344', 'Q1821177']
ASK WHERE { resource:Q182072 property:P1344 resource:Q917382 . resource:Q182072 property:P1344 resource:Q1821177 }
Czechoslovakia national football team Bring Your Own Film Festival Latvian Team Badminton Championships
action is_in
entity Czechoslovakia national football team
action intersection
action find_reverse
entity Bring Your Own Film Festival
relation participant of
action find_reverse
entity Latvian Team Badminton Championships
relation participant of
['Czechoslovakia national football team', 'participant of', 'Bring Your Own Film Festival'] ['Czechoslovakia national football team', 'participant of', 'Latvian Team Badminton Championships']
ASK WHERE { resource:Czechoslovakia_national_football_team property:participant_of resource:Bring_Your_Own_Film_Festival . resource:Czechoslovakia_national_football_team property:participant_of resource:Latvian_Team_Badminton_Championships }
[]
recurring event
SYSTEM
NO
(Q182072,P1344,Q917382) (Q182072,P1344,Q1821177)
action is_in
entity Q182072
action intersection
action find_reverse
entity Q917382
relation P1344
action find_reverse
entity Q1821177
relation P1344
[ANSWER]
['Q182072', 'P1344', 'Q917382'] ['Q182072', 'P1344', 'Q1821177']
ASK WHERE { resource:Q182072 property:P1344 resource:Q917382 . resource:Q182072 property:P1344 resource:Q1821177 }
No
action is_in
entity Czechoslovakia national football team
action intersection
action find_reverse
entity Bring Your Own Film Festival
relation participant of
action find_reverse
entity Latvian Team Badminton Championships
relation participant of
['Czechoslovakia national football team', 'participant of', 'Bring Your Own Film Festival'] ['Czechoslovakia national football team', 'participant of', 'Latvian Team Badminton Championships']
ASK WHERE { resource:Czechoslovakia_national_football_team property:participant_of resource:Bring_Your_Own_Film_Festival . resource:Czechoslovakia_national_football_team property:participant_of resource:Latvian_Team_Badminton_Championships }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5058879 Q3882467
P27 P17
Q15617994
USER
Which administrative territories are Andrej Daňko a civilian of or are Mereni present in ?
OR((Q3882467,P27,c(Q15617994)), (Q5058879,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3882467
relation P27
action find
entity Q5058879
relation P17
type Q15617994
{'OR': [['Q3882467', 'P27', {'concept': 'Q15617994'}], ['Q5058879', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q5058879 property:P17 ?e } UNION { resource:Q3882467 property:P27 ?e } } . ?e rdf:type ontology:Q15617994 }
Mereni Andrej Daňko
action filter_type
action union
action find
entity Andrej Daňko
relation country of citizenship
action find
entity Mereni
relation country
type designation for an administrative territorial entity
{'OR': [['Andrej Daňko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mereni', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Mereni property:country ?e } UNION { resource:Andrej_Daňko property:country_of_citizenship ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q218 Q214
SYSTEM
Romania, Slovakia
Q218 Q214
OR((Q3882467,P27,c(Q15617994)), (Q5058879,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q3882467
relation P27
action find
entity Q5058879
relation P17
type Q15617994
[ANSWERS] are Andrej Daňko a civilian of or are Mereni present in
{'OR': [['Q3882467', 'P27', {'concept': 'Q15617994'}], ['Q5058879', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q5058879 property:P17 ?e } UNION { resource:Q3882467 property:P27 ?e } } . ?e rdf:type ontology:Q15617994 }
Romania Slovakia
Romania and Slovakia are Andrej Daňko a civilian of or are Mereni present in
Romania Slovakia
action filter_type
action union
action find
entity Andrej Daňko
relation country of citizenship
action find
entity Mereni
relation country
type designation for an administrative territorial entity
{'OR': [['Andrej Daňko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mereni', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Mereni property:country ?e } UNION { resource:Andrej_Daňko property:country_of_citizenship ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with atleast 9 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 9
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?u ) WHERE { ?d property:P530 ?k . ?d rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?d } . FILTER ( ?u >= 9 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 9
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?u ) WHERE { ?d property:diplomatic_relation ?k . ?d rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . FILTER ( ?u >= 9 ) }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408 Q16
SYSTEM
Germany, Australia, Canada
Q183 Q408 Q16
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 9
[ANSWERS] are known to have diplomatic connections with atleast 9 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?u ) WHERE { ?d property:P530 ?k . ?d rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q15617994 } GROUP BY ?d } . FILTER ( ?u >= 9 ) }
Germany Australia Canada
Germany, Australia and Canada are known to have diplomatic connections with atleast 9 administrative territories
Germany Australia Canada
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 9
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?k ) AS ?u ) WHERE { ?d property:diplomatic_relation ?k . ?d rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . FILTER ( ?u >= 9 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q183 Q408 Q16
P36
Q56061
USER
Which administrative territories are known as the capital of Germany, Australia and Canada ?
(Q183,P36,c(Q56061)) (Q408,P36,c(Q56061)) (Q16,P36,c(Q56061))
action union
action filter_type
action find
entity Q183
relation P36
type Q56061
action filter_type
action find
entity Q408
relation P36
type Q56061
action filter_type
action find
entity Q16
relation P36
type Q56061
['Q183', 'P36', {'concept': 'Q56061'}] ['Q408', 'P36', {'concept': 'Q56061'}] ['Q16', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?d property:P36 ?q . VALUES ( ?d ) { ( resource:Q183 ) ( resource:Q408 ) } }
Germany Australia Canada
action union
action filter_type
action find
entity Germany
relation capital
type administrative territorial entity
action filter_type
action find
entity Australia
relation capital
type administrative territorial entity
action filter_type
action find
entity Canada
relation capital
type administrative territorial entity
['Germany', 'capital', {'concept': 'administrative territorial entity'}] ['Australia', 'capital', {'concept': 'administrative territorial entity'}] ['Canada', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?d property:capital ?q . VALUES ( ?d ) { ( resource:Germany ) ( resource:Australia ) } }
[]
administrative territorial entity
Q64 Q586 Q1930
SYSTEM
Berlin, Bonn, Ottawa
Q64 Q586 Q3114 Q1930
(Q183,P36,c(Q56061)) (Q408,P36,c(Q56061)) (Q16,P36,c(Q56061))
action union
action filter_type
action find
entity Q183
relation P36
type Q56061
action filter_type
action find
entity Q408
relation P36
type Q56061
action filter_type
action find
entity Q16
relation P36
type Q56061
[ANSWERS] are known as the capital of Germany, Australia and Canada
['Q183', 'P36', {'concept': 'Q56061'}] ['Q408', 'P36', {'concept': 'Q56061'}] ['Q16', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?d property:P36 ?q . VALUES ( ?d ) { ( resource:Q183 ) ( resource:Q408 ) } }
Berlin Bonn Canberra Ottawa
Berlin, Bonn and Ottawa are known as the capital of Germany, Australia and Canada
Berlin Bonn Ottawa
action union
action filter_type
action find
entity Germany
relation capital
type administrative territorial entity
action filter_type
action find
entity Australia
relation capital
type administrative territorial entity
action filter_type
action find
entity Canada
relation capital
type administrative territorial entity
['Germany', 'capital', {'concept': 'administrative territorial entity'}] ['Australia', 'capital', {'concept': 'administrative territorial entity'}] ['Canada', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?d property:capital ?q . VALUES ( ?d ) { ( resource:Germany ) ( resource:Australia ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q64 Q586 Q1930
P1376
Q1048835
USER
What have Berlin, Bonn and Ottawa as their capital ?
(Q64,P1376,c(Q1048835)) (Q586,P1376,c(Q1048835)) (Q1930,P1376,c(Q1048835))
action union
action filter_type
action find
entity Q64
relation P1376
type Q1048835
action filter_type
action find
entity Q586
relation P1376
type Q1048835
action filter_type
action find
entity Q1930
relation P1376
type Q1048835
['Q64', 'P1376', {'concept': 'Q1048835'}] ['Q586', 'P1376', {'concept': 'Q1048835'}] ['Q1930', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { { ?k rdf:type ontology:Q1048835 . resource:Q64 property:P1376 ?k } UNION { resource:Q586 property:P1376 ?k . ?k rdf:type ontology:Q1048835 } }
Berlin Bonn Ottawa
action union
action filter_type
action find
entity Berlin
relation capital of
type political territorial entity
action filter_type
action find
entity Bonn
relation capital of
type political territorial entity
action filter_type
action find
entity Ottawa
relation capital of
type political territorial entity
['Berlin', 'capital of', {'concept': 'political territorial entity'}] ['Bonn', 'capital of', {'concept': 'political territorial entity'}] ['Ottawa', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { ?k rdf:type ontology:political_territorial_entity . resource:Berlin property:capital_of ?k } UNION { resource:Bonn property:capital_of ?k . ?k rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
Q183 Q183 Q16
SYSTEM
Canada for 3rd, Germany for 1st, 2nd
Q183 Q183 Q16
(Q64,P1376,c(Q1048835)) (Q586,P1376,c(Q1048835)) (Q1930,P1376,c(Q1048835))
action union
action filter_type
action find
entity Q64
relation P1376
type Q1048835
action filter_type
action find
entity Q586
relation P1376
type Q1048835
action filter_type
action find
entity Q1930
relation P1376
type Q1048835
[ANSWERS]
['Q64', 'P1376', {'concept': 'Q1048835'}] ['Q586', 'P1376', {'concept': 'Q1048835'}] ['Q1930', 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { { ?k rdf:type ontology:Q1048835 . resource:Q64 property:P1376 ?k } UNION { resource:Q586 property:P1376 ?k . ?k rdf:type ontology:Q1048835 } }
Germany Germany Canada
Germany, Germany and Canada have Berlin, Bonn and Ottawa as their capital
Germany Germany Canada
action union
action filter_type
action find
entity Berlin
relation capital of
type political territorial entity
action filter_type
action find
entity Bonn
relation capital of
type political territorial entity
action filter_type
action find
entity Ottawa
relation capital of
type political territorial entity
['Berlin', 'capital of', {'concept': 'political territorial entity'}] ['Bonn', 'capital of', {'concept': 'political territorial entity'}] ['Ottawa', 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { ?k rdf:type ontology:political_territorial_entity . resource:Berlin property:capital_of ?k } UNION { resource:Bonn property:capital_of ?k . ?k rdf:type ontology:political_territorial_entity } }
[]