Simple Question (Direct)
Simple Question
Q6767938
P106
Q12737077
USER
Which occupation is the profession of Mark Harris ?
(Q6767938,P106,c(Q12737077))
action filter_type
action find
entity Q6767938
relation P106
type Q12737077
['Q6767938', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q6767938 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Mark Harris
action filter_type
action find
entity Mark Harris
relation occupation
type occupation
['Mark Harris', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Mark_Harris property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q6767938,P106,c(Q12737077))
action filter_type
action find
entity Q6767938
relation P106
type Q12737077
The [ANSWER] is the profession of Mark Harris
['Q6767938', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q6767938 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
association football player
The association football player is the profession of Mark Harris
association football player
action filter_type
action find
entity Mark Harris
relation occupation
type occupation
['Mark Harris', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Mark_Harris property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6767938
P641
Q349
USER
Which sport was that person a part of ?
(Q937857,P641,c(Q349))
action filter_type
action find
entity Q6767938
relation P641
type Q349
['Q937857', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q349 . resource:Q6767938 property:P641 ?i }
Mark Harris
action filter_type
action find
entity Mark Harris
relation sport
type sport
['association football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:sport . resource:Mark_Harris property:sport ?i }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q937857,P641,c(Q349))
action filter_type
action find
entity Q6767938
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q937857', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q349 . resource:Q6767938 property:P641 ?i }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Mark Harris
relation sport
type sport
['association football player', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:sport . resource:Mark_Harris property:sport ?i }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6767938
P27
Q15617994
USER
Which administrative territory is the country of citizenship of that person ?
(Q2736,P27,c(Q15617994))
action filter_type
action find
entity Q6767938
relation P27
type Q15617994
['Q2736', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q6767938 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
Mark Harris
action filter_type
action find
entity Mark Harris
relation country of citizenship
type designation for an administrative territorial entity
['association football', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Mark_Harris property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q2736,P27,c(Q15617994))
action filter_type
action find
entity Q6767938
relation P27
type Q15617994
[ANSWER] is the country of citizenship of that person
['Q2736', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q6767938 property:P27 ?e . ?e rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is the country of citizenship of that person
United Kingdom
action filter_type
action find
entity Mark Harris
relation country of citizenship
type designation for an administrative territorial entity
['association football', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Mark_Harris property:country_of_citizenship ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q145 Q4450680
P530
Q1048835
USER
Does Talkivka have diplomatic relationships with that administrative territory ?
(Q145,P530,Q4450680)
action is_in
entity Q4450680
action find
entity Q145
relation P530
['Q145', 'P530', 'Q4450680']
ASK WHERE { resource:Q145 property:P530 resource:Q4450680 }
United Kingdom Talkivka
action is_in
entity Talkivka
action find
entity United Kingdom
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Talkivka']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Talkivka }
[]
political territorial entity
SYSTEM
NO
(Q145,P530,Q4450680)
action is_in
entity Q4450680
action find
entity Q145
relation P530
[ANSWER]
['Q145', 'P530', 'Q4450680']
ASK WHERE { resource:Q145 property:P530 resource:Q4450680 }
No
action is_in
entity Talkivka
action find
entity United Kingdom
relation diplomatic relation
['United Kingdom', 'diplomatic relation', 'Talkivka']
ASK WHERE { resource:United_Kingdom property:diplomatic_relation resource:Talkivka }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q15617994 Q201658 Q15416
USER
Which administrative territories are the origin of exactly 1 film genres and television programs ?
(c(Q201658)|c(Q15416),P495,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
value 1
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) ?e WHERE { VALUES ( ?h ) { ( ontology:Q201658 ) ( ontology:Q15416 ) } . ?a rdf:type ?h } GROUP BY ?e } . FILTER ( ?y = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
value 1
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) ?e WHERE { VALUES ( ?h ) { ( ontology:film_genre ) ( ontology:television_program ) } . ?a rdf:type ?h } GROUP BY ?e } . FILTER ( ?y = 1 ) }
[]
designation for an administrative territorial entity film genre television program
Q889 Q211 Q37
SYSTEM
Afghanistan, Latvia, Lithuania
Q804 Q800 Q37 Q712 Q837 Q398 Q792 Q790 Q889 Q233 Q1045 Q1044 Q1027 Q786 Q227 Q229 Q1036 Q1032 Q754 Q750 Q211 Q217 Q916 Q1005 Q970 Q77 Q774 Q817 Q1019
(c(Q201658)|c(Q15416),P495,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
value 1
[ANSWERS] are the origin of exactly 1 film genres and television programs
[[{'concept': 'Q201658'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) ?e WHERE { VALUES ( ?h ) { ( ontology:Q201658 ) ( ontology:Q15416 ) } . ?a rdf:type ?h } GROUP BY ?e } . FILTER ( ?y = 1 ) }
Panama Costa Rica Lithuania Fiji Nepal Bahrain El Salvador Haiti Afghanistan Malta Somalia Sierra Leone Mauritius Dominican Republic Azerbaijan Cyprus Uganda Niger Trinidad and Tobago Bolivia Latvia Republic of Moldova Angola Gambia Comoros Uruguay Guatemala Kuwait Madagascar
Afghanistan, Latvia and Lithuania are the origin of exactly 1 film genres and television programs
Afghanistan Latvia Lithuania
action equal
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
value 1
[[{'concept': 'film genre'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?y ) ?e WHERE { VALUES ( ?h ) { ( ontology:film_genre ) ( ontology:television_program ) } . ?a rdf:type ?h } GROUP BY ?e } . FILTER ( ?y = 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q408
P530
Q1048835
USER
Are Australia known to have diplomatic connections with those administrative territories ?
(Q408,P530,Q889) (Q408,P530,Q211) (Q408,P530,Q37)
action is_in
entity prev_answer
action find
entity Q408
relation P530
['Q408', 'P530', 'Q889'] ['Q408', 'P530', 'Q211'] ['Q408', 'P530', 'Q37']
ASK WHERE { VALUES ( ?u ) { ( resource:Q804 ) ( resource:Q800 ) ( resource:Q37 ) } . resource:Q408 property:P530 ?u }
Australia
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Afghanistan'] ['Australia', 'diplomatic relation', 'Latvia'] ['Australia', 'diplomatic relation', 'Lithuania']
ASK WHERE { VALUES ( ?u ) { ( resource:Panama ) ( resource:Costa_Rica ) ( resource:Lithuania ) } . resource:Australia property:diplomatic_relation ?u }
[]
political territorial entity
SYSTEM
YES
(Q408,P530,Q889) (Q408,P530,Q211) (Q408,P530,Q37)
action is_in
entity prev_answer
action find
entity Q408
relation P530
[ANSWER]
['Q408', 'P530', 'Q889'] ['Q408', 'P530', 'Q211'] ['Q408', 'P530', 'Q37']
ASK WHERE { VALUES ( ?u ) { ( resource:Q804 ) ( resource:Q800 ) ( resource:Q37 ) } . resource:Q408 property:P530 ?u }
Yes
action is_in
entity prev_answer
action find
entity Australia
relation diplomatic relation
['Australia', 'diplomatic relation', 'Afghanistan'] ['Australia', 'diplomatic relation', 'Latvia'] ['Australia', 'diplomatic relation', 'Lithuania']
ASK WHERE { VALUES ( ?u ) { ( resource:Panama ) ( resource:Costa_Rica ) ( resource:Lithuania ) } . resource:Australia property:diplomatic_relation ?u }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1641970 Q145
P6 P1346
Q502895
USER
Which people are the heads of the government of United Kingdom or were the winner of John R. Wooden Award ?
OR((Q145,P6,c(Q502895)), (Q1641970,P1346,c(Q502895)))
action filter_type
action union
action find
entity Q145
relation P6
action find
entity Q1641970
relation P1346
type Q502895
{'OR': [['Q145', 'P6', {'concept': 'Q502895'}], ['Q1641970', 'P1346', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . { { resource:Q145 property:P6 ?i } UNION { resource:Q1641970 property:P1346 ?i } } }
John R. Wooden Award United Kingdom
action filter_type
action union
action find
entity United Kingdom
relation head of government
action find
entity John R. Wooden Award
relation winner
type common name
{'OR': [['United Kingdom', 'head of government', {'concept': 'common name'}], ['John R. Wooden Award', 'winner', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . { { resource:United_Kingdom property:head_of_government ?i } UNION { resource:John_R._Wooden_Award property:winner ?i } } }
[]
common name
Q41421 Q948237 Q289398 Q517350 Q553318 Q1166588 Q594137 Q310281 Q264766 Q524480
SYSTEM
Some of them are Michael Jordan, Phil Ford, Chris Mullin, Tyler Hansbrough, Jimmer Fredette, Darrell Griffith, Ralph Sampson, Elton Brand, Theresa May, Shane Battier
Q211876 Q193020 Q317021 Q362214 Q553318 Q1684380 Q190152 Q289172 Q317008 Q311546 Q524480 Q433148 Q1166588 Q463635 Q1628310 Q2654539 Q1887670 Q361134 Q2925780 Q2600870 Q242278 Q732350 Q461407 Q202823 Q1458331 Q13562617 Q440382 Q948237 Q192 Q264766 Q369109 Q310281 Q10516040 Q964580 Q289398 Q41421 Q918347 Q29545 Q517350 Q309783 Q2568192 Q926311 Q16227726 Q594137 Q941349 Q352140 Q112847 Q609527
OR((Q145,P6,c(Q502895)), (Q1641970,P1346,c(Q502895)))
action filter_type
action union
action find
entity Q145
relation P6
action find
entity Q1641970
relation P1346
type Q502895
[ANSWERS] are the heads of the government of United Kingdom or were the winner of John R. Wooden Award
{'OR': [['Q145', 'P6', {'concept': 'Q502895'}], ['Q1641970', 'P1346', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . { { resource:Q145 property:P6 ?i } UNION { resource:Q1641970 property:P1346 ?i } } }
David Robinson Tim Duncan Jameer Nelson Kenyon Martin Jimmer Fredette Jay Williams Larry Bird Tina Charles Anthony Davis Andrew Bogut Shane Battier Christian Laettner Darrell Griffith Larry Johnson Calbert Cheaney Breanna Stewart Marques Johnson Marcus Camby Brittney Griner Ed O'Bannon Candace Parker Doug McDermott T. J. Ford Seimone Augustus Lionel Simmons Chiney Ogwumike Evan Turner Phil Ford David Cameron Theresa May J. J. Redick Elton Brand Trey Burke Danny Manning Chris Mullin Michael Jordan Danny Ainge Kevin Durant Tyler Hansbrough Blake Griffin Walter Berry Glenn Robinson Frank Kaminsky Ralph Sampson Sean Elliott Antawn Jamison Alana Beard Maya Moore
Michael Jordan, Phil Ford, Chris Mullin, Tyler Hansbrough, Jimmer Fredette, Darrell Griffith, Ralph Sampson, Elton Brand, Theresa May and Shane Battier are the heads of the government of United Kingdom or were the winner of John R. Wooden Award
Michael Jordan Phil Ford Chris Mullin Tyler Hansbrough Jimmer Fredette Darrell Griffith Ralph Sampson Elton Brand Theresa May Shane Battier
action filter_type
action union
action find
entity United Kingdom
relation head of government
action find
entity John R. Wooden Award
relation winner
type common name
{'OR': [['United Kingdom', 'head of government', {'concept': 'common name'}], ['John R. Wooden Award', 'winner', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . { { resource:United_Kingdom property:head_of_government ?i } UNION { resource:John_R._Wooden_Award property:winner ?i } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q27681605 Q41421
P26
Q502895
USER
Which people are married to Michael Jordan or Ephraim Laurence Palmer ?
OR((Q41421,P26,c(Q502895)), (Q27681605,P26,c(Q502895)))
action filter_type
action union
action find
entity Q41421
relation P26
action find
entity Q27681605
relation P26
type Q502895
{'OR': [['Q41421', 'P26', {'concept': 'Q502895'}], ['Q27681605', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . { ?c property:P26 ?f . VALUES ( ?c ) { ( resource:Q27681605 ) ( resource:Q41421 ) } } }
Ephraim Laurence Palmer Michael Jordan
action filter_type
action union
action find
entity Michael Jordan
relation spouse
action find
entity Ephraim Laurence Palmer
relation spouse
type common name
{'OR': [['Michael Jordan', 'spouse', {'concept': 'common name'}], ['Ephraim Laurence Palmer', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . { ?c property:spouse ?f . VALUES ( ?c ) { ( resource:Ephraim_Laurence_Palmer ) ( resource:Michael_Jordan ) } } }
[]
common name
Q26220952 Q26220958 Q15437472
SYSTEM
Yvette Prieto, Juanita Vanoy, Katherine Van Winkle Palmer
Q26220952 Q26220958 Q15437472
OR((Q41421,P26,c(Q502895)), (Q27681605,P26,c(Q502895)))
action filter_type
action union
action find
entity Q41421
relation P26
action find
entity Q27681605
relation P26
type Q502895
[ANSWERS] are married to Michael Jordan or Ephraim Laurence Palmer
{'OR': [['Q41421', 'P26', {'concept': 'Q502895'}], ['Q27681605', 'P26', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . { ?c property:P26 ?f . VALUES ( ?c ) { ( resource:Q27681605 ) ( resource:Q41421 ) } } }
Yvette Prieto Juanita Vanoy Katherine Van Winkle Palmer
Yvette Prieto, Juanita Vanoy and Katherine Van Winkle Palmer are married to Michael Jordan or Ephraim Laurence Palmer
Yvette Prieto Juanita Vanoy Katherine Van Winkle Palmer
action filter_type
action union
action find
entity Michael Jordan
relation spouse
action find
entity Ephraim Laurence Palmer
relation spouse
type common name
{'OR': [['Michael Jordan', 'spouse', {'concept': 'common name'}], ['Ephraim Laurence Palmer', 'spouse', {'concept': 'common name'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . { ?c property:spouse ?f . VALUES ( ?c ) { ( resource:Ephraim_Laurence_Palmer ) ( resource:Michael_Jordan ) } } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q10843402 Q937857
P106
Q502895
USER
Which people have the profession as association football player and swimmer ?
AND((c(Q502895),P106,Q937857), (c(Q502895),P106,Q10843402))
action filter_type
action intersection
action find_reverse
entity Q937857
relation P106
action find_reverse
entity Q10843402
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q937857'], [{'concept': 'Q502895'}, 'P106', 'Q10843402']]}
SELECT DISTINCT ?p WHERE { ?p property:P106 resource:Q937857 . ?p property:P106 resource:Q10843402 . ?p rdf:type ontology:Q502895 }
swimmer association football player
action filter_type
action intersection
action find_reverse
entity association football player
relation occupation
action find_reverse
entity swimmer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'association football player'], [{'concept': 'common name'}, 'occupation', 'swimmer']]}
SELECT DISTINCT ?p WHERE { ?p property:occupation resource:association_football_player . ?p property:occupation resource:swimmer . ?p rdf:type ontology:common_name }
[]
common name
Q1010497 Q2348130 Q16213644 Q1369178 Q2355792 Q735971 Q313443 Q219088 Q7301636 Q1032793
SYSTEM
Ferenc Gillemot, Erik Bergqvist, Grigoriy Matuzkov, George Cornet, Barend van Hemert, William Henry Dean, Alfréd Hajós, Zoltán Halmay, Rebeca Gusmão, Henrik Hajós
Q1010497 Q2348130 Q16213644 Q1369178 Q2355792 Q735971 Q313443 Q219088 Q7301636 Q1032793
AND((c(Q502895),P106,Q937857), (c(Q502895),P106,Q10843402))
action filter_type
action intersection
action find_reverse
entity Q937857
relation P106
action find_reverse
entity Q10843402
relation P106
type Q502895
[ANSWERS] have the profession as association football player and swimmer
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q937857'], [{'concept': 'Q502895'}, 'P106', 'Q10843402']]}
SELECT DISTINCT ?p WHERE { ?p property:P106 resource:Q937857 . ?p property:P106 resource:Q10843402 . ?p rdf:type ontology:Q502895 }
Ferenc Gillemot Erik Bergqvist Grigoriy Matuzkov George Cornet Barend van Hemert William Henry Dean Alfréd Hajós Zoltán Halmay Rebeca Gusmão Henrik Hajós
Ferenc Gillemot, Erik Bergqvist, Grigoriy Matuzkov, George Cornet, Barend van Hemert, William Henry Dean, Alfréd Hajós, Zoltán Halmay, Rebeca Gusmão and Henrik Hajós have the profession as association football player and swimmer
Ferenc Gillemot Erik Bergqvist Grigoriy Matuzkov George Cornet Barend van Hemert William Henry Dean Alfréd Hajós Zoltán Halmay Rebeca Gusmão Henrik Hajós
action filter_type
action intersection
action find_reverse
entity association football player
relation occupation
action find_reverse
entity swimmer
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'association football player'], [{'concept': 'common name'}, 'occupation', 'swimmer']]}
SELECT DISTINCT ?p WHERE { ?p property:occupation resource:association_football_player . ?p property:occupation resource:swimmer . ?p rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q264766 Q28989
P26
Q502895
USER
How many people are married to Theresa May or graf ?
(c(Q502895),P26,Q264766) (c(Q502895),P26,Q28989)
action count
action union
action filter_type
action find_reverse
entity Q264766
relation P26
type Q502895
action filter_type
action find_reverse
entity Q28989
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q264766'] [{'concept': 'Q502895'}, 'P26', 'Q28989']
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { ?j property:P26 resource:Q264766 . ?j rdf:type ontology:Q502895 } UNION { ?j rdf:type ontology:Q502895 . ?j property:P26 resource:Q28989 } }
Theresa May graf
action count
action union
action filter_type
action find_reverse
entity Theresa May
relation spouse
type common name
action filter_type
action find_reverse
entity graf
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Theresa May'] [{'concept': 'common name'}, 'spouse', 'graf']
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { ?j property:spouse resource:Theresa_May . ?j rdf:type ontology:common_name } UNION { ?j rdf:type ontology:common_name . ?j property:spouse resource:graf } }
[]
common name
SYSTEM
2
Q1941967 Q25194731
(c(Q502895),P26,Q264766) (c(Q502895),P26,Q28989)
action count
action union
action filter_type
action find_reverse
entity Q264766
relation P26
type Q502895
action filter_type
action find_reverse
entity Q28989
relation P26
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q264766'] [{'concept': 'Q502895'}, 'P26', 'Q28989']
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { ?j property:P26 resource:Q264766 . ?j rdf:type ontology:Q502895 } UNION { ?j rdf:type ontology:Q502895 . ?j property:P26 resource:Q28989 } }
Princess Marie Adelaide of Luxembourg Philip May
2
action count
action union
action filter_type
action find_reverse
entity Theresa May
relation spouse
type common name
action filter_type
action find_reverse
entity graf
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Theresa May'] [{'concept': 'common name'}, 'spouse', 'graf']
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { ?j property:spouse resource:Theresa_May . ?j rdf:type ontology:common_name } UNION { ?j rdf:type ontology:common_name . ?j property:spouse resource:graf } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q889
P36
Q515
USER
Which city is known as the capital of Afghanistan ?
(Q889,P36,c(Q515))
action filter_type
action find
entity Q889
relation P36
type Q515
['Q889', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { resource:Q889 property:P36 ?v . ?v rdf:type ontology:Q515 }
Afghanistan
action filter_type
action find
entity Afghanistan
relation capital
type city
['Afghanistan', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { resource:Afghanistan property:capital ?v . ?v rdf:type ontology:city }
[]
city
Q5838
SYSTEM
Kabul
Q5838
(Q889,P36,c(Q515))
action filter_type
action find
entity Q889
relation P36
type Q515
In [ANSWER] is known as the capital of Afghanistan
['Q889', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { resource:Q889 property:P36 ?v . ?v rdf:type ontology:Q515 }
Kabul
In Kabul is known as the capital of Afghanistan
Kabul
action filter_type
action find
entity Afghanistan
relation capital
type city
['Afghanistan', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { resource:Afghanistan property:capital ?v . ?v rdf:type ontology:city }
[]