Simple Question (Direct)
Simple Question
Q5622642
P21
Q290
USER
Which sex does Guy Trottier possess ?
(Q5622642,P21,c(Q290))
action filter_type
action find
entity Q5622642
relation P21
type Q290
['Q5622642', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q5622642 property:P21 ?t . ?t rdf:type ontology:Q290 }
Guy Trottier
action filter_type
action find
entity Guy Trottier
relation gender
type sex
['Guy Trottier', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Guy_Trottier property:gender ?t . ?t rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5622642,P21,c(Q290))
action filter_type
action find
entity Q5622642
relation P21
type Q290
Guy Trottier possesses un [ANSWER]
['Q5622642', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q5622642 property:P21 ?t . ?t rdf:type ontology:Q290 }
male
Guy Trottier possesses un male
male
action filter_type
action find
entity Guy Trottier
relation gender
type sex
['Guy Trottier', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Guy_Trottier property:gender ?t . ?t rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5622642
P27
Q1048835
USER
Which political territory is the native country of that person ?
(Q6581097,P27,c(Q1048835))
action filter_type
action find
entity Q5622642
relation P27
type Q1048835
['Q6581097', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { resource:Q5622642 property:P27 ?i . ?i rdf:type ontology:Q1048835 }
Guy Trottier
action filter_type
action find
entity Guy Trottier
relation country of citizenship
type political territorial entity
['male', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Guy_Trottier property:country_of_citizenship ?i . ?i rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q6581097,P27,c(Q1048835))
action filter_type
action find
entity Q5622642
relation P27
type Q1048835
[ANSWER] is the native country of that person
['Q6581097', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { resource:Q5622642 property:P27 ?i . ?i rdf:type ontology:Q1048835 }
Canada
Canada is the native country of that person
Canada
action filter_type
action find
entity Guy Trottier
relation country of citizenship
type political territorial entity
['male', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Guy_Trottier property:country_of_citizenship ?i . ?i rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q1048835 Q515 Q486972
USER
How many political territories have exactly 1 cities or human settlements as their county seat ?
(c(Q515)|c(Q486972),P1376,c(Q1048835))
action count
action equal
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
value 1
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) ?a WHERE { ?g rdf:type ?s . VALUES ( ?s ) { ( ontology:Q515 ) ( ontology:Q486972 ) } } GROUP BY ?a } . FILTER ( ?e = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
value 1
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) ?a WHERE { ?g rdf:type ?s . VALUES ( ?s ) { ( ontology:city ) ( ontology:human_settlement ) } } GROUP BY ?a } . FILTER ( ?e = 1 ) }
[]
political territorial entity city human settlement
SYSTEM
157
Q7130037 Q13881 Q13882 Q13884 Q13889 Q785 Q13726 Q2051 Q3891 Q3899 Q3321945 Q2175 Q2271 Q48060 Q10500690 Q13900 Q3317759 Q170390 Q8170 Q168651 Q3312902 Q2702993 Q3741 Q2223 Q6156 Q13786 Q13785 Q13869 Q13868 Q13865 Q13863 Q13862 Q10547 Q10469 Q10462 Q10466 Q1890 Q971457 Q664 Q12741 Q6339 Q5082 Q5065 Q5067 Q5061 Q5062 Q5068 Q13737 Q2846059 Q7932 Q6319070 Q2140 Q13827 Q13826 Q13825 Q13829 Q953068 Q2718534 Q170036 Q9648 Q3125978 Q6319759 Q13857 Q3313430 Q5088519 Q757 Q13772 Q6318695 Q6301 Q7890 Q3916 Q13794 Q13791 Q13792 Q13813 Q3826003 Q48079 Q5093 Q5095 Q671742 Q5075 Q193619 Q13744 Q48094 Q192697 Q2772 Q13874 Q7928 Q7258563 Q8050384 Q3314201 Q1468315 Q188373 Q48046 Q7414539 Q2101298 Q1823 Q1769672 Q13844 Q13847 Q13843 Q2594990 Q1229942 Q8195 Q2110 Q48072 Q3586 Q13892 Q13891 Q13899 Q5444794 Q593806 Q3906 Q201697 Q7827062 Q1866 Q4694508 Q13809 Q13860 Q13806 Q170672 Q240441 Q24174 Q10440 Q49655 Q3824193 Q190930 Q13753 Q13752 Q13755 Q13759 Q8167 Q571947 Q48089 Q7916 Q7912 Q48106 Q2307775 Q3540 Q5856660 Q2697637 Q10526 Q10480 Q10485 Q13870 Q13872 Q3724 Q13876 Q48057 Q6013498 Q6328 Q10557 Q10555 Q2902 Q10559 Q5924968 Q35086
(c(Q515)|c(Q486972),P1376,c(Q1048835))
action count
action equal
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
value 1
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) ?a WHERE { ?g rdf:type ?s . VALUES ( ?s ) { ( ontology:Q515 ) ( ontology:Q486972 ) } } GROUP BY ?a } . FILTER ( ?e = 1 ) }
Panao District Sorsogon South Cotabato Southern Leyte Surigao del Norte Jersey Albay Jambi Province Kalimantan Tengah Kalimantan Timur Acarí District Riau Province South Sumatra Gera District San Miguel District Zamboanga del Sur Putumayo District County of Oldenburg Tübingen Landgraviate of Hesse-Kassel Coya District Haquira District Special Region of Yogyakarta Kepulauan Riau Oberspreewald-Lausitz Cebu Cavite Palawan Oriental Mindoro Nueva Ecija Negros Oriental Negros Occidental Lower Franconia Main-Spessart Haßberge Bad Kissingen Bengkulu Province Lunahuaná District New Zealand Ilocos Sur Erzgebirgskreis West Sulawesi Central Sulawesi Province Gorontalo Province East Nusa Tenggara Province West Nusa Tenggara North Sulawesi Province Basilan Andahuaylillas District Darmstadt Government Region Magdalena de Cao District North Sumatra Province Kalinga Isabela Iloilo La Union South-West Africa Lurigancho Kiev Oblast Falkland Islands Bali Sicaya District Misamis Occidental Antioquia District Chavinillo District Saint Vincent and the Grenadines Capiz Pimentel Nordsachsen Kassel Kalimantan Barat Davao del Sur Cotabato Davao del Norte Ilocos Norte Chucuito District Leipzig District Maluku Province Papua General Pueyrredón South East Sulawesi Province Union of South Africa Batangas Potsdam District South Moravian Region West Sumatra Rizal Kassel  Government Region Puerto Inca District Yavari District Achoma District Pozuzo District South Bohemia Region Cottbus San José de Sisa District Tandil Aceh La Sotonera Leyte Masbate Lanao del Sur Dominion of New Zealand La Jalca District Breisgau-Hochschwarzwald Lampung Province Karl-Marx-Stadt District East Java Tarlac Surigao del Sur Zamboanga del Norte Fernando Lores District Llata District Kalimantan Selatan Leimebamba District Torres Causana District Bangka–Belitung Islands Aguas Verdes Eastern Samar Misamis Oriental Davao Oriental Dnipropetrovsk Oblast General Alvarado Partido Dresden Government Region Coburg Schellenberg Querobamba District Vysočina Region Bukidnon Bohol Bulacan Cagayan Freiburg Government Region Bautzen Neubrandenburg District Darmstadt-Dieburg Offenbach Suhl District Sepahua Banten Province Mito District San Marcos District Rosenheim Dingolfing-Landau Deggendorf Pampanga Quezon West Java Province Samar Frankfurt (Oder) Inambari Mittelsachsen Swabia Upper Palatinate Mecklenburgische Seenplatte District Lower Bavaria Huacaybamba South Georgia and the South Sandwich Islands
157
action count
action equal
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
value 1
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?e ) ?a WHERE { ?g rdf:type ?s . VALUES ( ?s ) { ( ontology:city ) ( ontology:human_settlement ) } } GROUP BY ?a } . FILTER ( ?e = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P825
Q502895 Q7725634 Q811979
USER
Which people are atleast 1 literary works and architectural structures dedicated to ?
(c(Q7725634)|c(Q811979),P825,c(Q502895))
action atleast
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P825
type Q502895
type Q811979
value 1
[[{'concept': 'Q7725634'}, {'concept': 'Q811979'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) ?d WHERE { VALUES ( ?b ) { ( ontology:Q7725634 ) ( ontology:Q811979 ) } . ?u rdf:type ?b } GROUP BY ?d } . FILTER ( ?c >= 1 ) }
action atleast
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type literary work
action find_reverse_tuple_counts
relation dedicated to
type common name
type architectural structure
value 1
[[{'concept': 'literary work'}, {'concept': 'architectural structure'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) ?d WHERE { VALUES ( ?b ) { ( ontology:literary_work ) ( ontology:architectural_structure ) } . ?u rdf:type ?b } GROUP BY ?d } . FILTER ( ?c >= 1 ) }
[]
common name literary work architectural structure
Q8023 Q392 Q120180
SYSTEM
Nelson Mandela, Bob Dylan, Alexander III of Russia
Q534049 Q392 Q183126 Q448890 Q935 Q2959955 Q120180 Q460876 Q8023 Q170726 Q2594000 Q454840 Q313196 Q20757530 Q2853967 Q2360522 Q354519 Q457433 Q163366 Q503886 Q374467 Q123062
(c(Q7725634)|c(Q811979),P825,c(Q502895))
action atleast
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P825
type Q502895
type Q811979
value 1
[ANSWERS] are atleast 1 literary works and architectural structures dedicated to
[[{'concept': 'Q7725634'}, {'concept': 'Q811979'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) ?d WHERE { VALUES ( ?b ) { ( ontology:Q7725634 ) ( ontology:Q811979 ) } . ?u rdf:type ?b } GROUP BY ?d } . FILTER ( ?c >= 1 ) }
Saint Petroc Bob Dylan Ramakrishna Charlotte Saunders Cushman Isaac Newton Charles Panzéra Alexander III of Russia Lenny Bruce Nelson Mandela Enrico Caruso Diego Brosset William Cullen Bryant Louis Desaix Madame Autard de Bragard Antoine Gailleton Anna Petrovna Kern Charley Patton Sara Dylan Ezra Pound Sterling Morrison Gabriel of Our Lady of Sorrows Jacques Necker
Nelson Mandela, Bob Dylan and Alexander III of Russia are atleast 1 literary works and architectural structures dedicated to
Nelson Mandela Bob Dylan Alexander III of Russia
action atleast
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type literary work
action find_reverse_tuple_counts
relation dedicated to
type common name
type architectural structure
value 1
[[{'concept': 'literary work'}, {'concept': 'architectural structure'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) ?d WHERE { VALUES ( ?b ) { ( ontology:literary_work ) ( ontology:architectural_structure ) } . ?u rdf:type ?b } GROUP BY ?d } . FILTER ( ?c >= 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can exactly 5 people perform with ?
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?n = 5 ) . { SELECT DISTINCT ?l ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?l } }
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?n = 5 ) . { SELECT DISTINCT ?l ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?l } }
[]
musical instrument common name
Q213461 Q213100
SYSTEM
harmonium, tabla
Q213461 Q213100
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?n = 5 ) . { SELECT DISTINCT ?l ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?l } }
harmonium tabla
Which musical instruments can exactly 5 people perform with
harmonium tabla
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?l WHERE { FILTER ( ?n = 5 ) . { SELECT DISTINCT ?l ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?l } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q392
P103
Q34770
USER
What is the mother tongue of Bob Dylan ?
(Q392,P103,c(Q34770))
action filter_type
action find
entity Q392
relation P103
type Q34770
['Q392', 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { resource:Q392 property:P103 ?p . ?p rdf:type ontology:Q34770 }
Bob Dylan
action filter_type
action find
entity Bob Dylan
relation native language
type language
['Bob Dylan', 'native language', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { resource:Bob_Dylan property:native_language ?p . ?p rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q392,P103,c(Q34770))
action filter_type
action find
entity Q392
relation P103
type Q34770
The mother tongue of Bob Dylan is the [ANSWER]
['Q392', 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { resource:Q392 property:P103 ?p . ?p rdf:type ontology:Q34770 }
English
The mother tongue of Bob Dylan is the English
English
action filter_type
action find
entity Bob Dylan
relation native language
type language
['Bob Dylan', 'native language', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { resource:Bob_Dylan property:native_language ?p . ?p rdf:type ontology:language }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q392
P106
Q12737077
USER
How many occupations are the professions of Bob Dylan ?
(Q392,P106,c(Q12737077))
action count
action filter_type
action find
entity Q392
relation P106
type Q12737077
['Q392', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x rdf:type ontology:Q12737077 . resource:Q392 property:P106 ?x }
Bob Dylan
action count
action filter_type
action find
entity Bob Dylan
relation occupation
type occupation
['Bob Dylan', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x rdf:type ontology:occupation . resource:Bob_Dylan property:occupation ?x }
[]
occupation
SYSTEM
8
Q183945 Q488205 Q130857 Q1028181 Q49757 Q36834 Q33999 Q36180
(Q392,P106,c(Q12737077))
action count
action filter_type
action find
entity Q392
relation P106
type Q12737077
[ANSWER]
['Q392', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x rdf:type ontology:Q12737077 . resource:Q392 property:P106 ?x }
record producer singer-songwriter disc jockey painter poet composer actor writer
8
action count
action filter_type
action find
entity Bob Dylan
relation occupation
type occupation
['Bob Dylan', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { ?x rdf:type ontology:occupation . resource:Bob_Dylan property:occupation ?x }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q16904901
P106
Q12737077
USER
And how about Birger Sivertsen?
(Q16904901,P106,c(Q12737077))
action count
action filter_type
action find
entity Q16904901
relation P106
type Q12737077
['Q16904901', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { resource:Q16904901 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Birger Sivertsen
action count
action filter_type
action find
entity Birger Sivertsen
relation occupation
type occupation
['Birger Sivertsen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { resource:Birger_Sivertsen property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
SYSTEM
1
Q36180
(Q16904901,P106,c(Q12737077))
action count
action filter_type
action find
entity Q16904901
relation P106
type Q12737077
[ANSWER]
['Q16904901', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { resource:Q16904901 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
writer
1
action count
action filter_type
action find
entity Birger Sivertsen
relation occupation
type occupation
['Birger Sivertsen', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?n ) WHERE { resource:Birger_Sivertsen property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q14954679
Q12737077
USER
And also tell me about Ged Kearney?
(Q14954679,P106,c(Q12737077))
action count
action filter_type
action find
entity Q14954679
relation P106
type Q12737077
['Q14954679', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { resource:Q14954679 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Ged Kearney
action count
action filter_type
action find
entity Ged Kearney
relation occupation
type occupation
['Ged Kearney', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { resource:Ged_Kearney property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
SYSTEM
1
(Q14954679,P106,c(Q12737077))
action count
action filter_type
action find
entity Q14954679
relation P106
type Q12737077
[ANSWER]
['Q14954679', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { resource:Q14954679 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
1
action count
action filter_type
action find
entity Ged Kearney
relation occupation
type occupation
['Ged Kearney', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { resource:Ged_Kearney property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3181146 Q5622642
P54
Q12973014
USER
Which sports teams are Guy Trottier or John Buck a member of ?
OR((Q5622642,P54,c(Q12973014)), (Q3181146,P54,c(Q12973014)))
action filter_type
action union
action find
entity Q5622642
relation P54
action find
entity Q3181146
relation P54
type Q12973014
{'OR': [['Q5622642', 'P54', {'concept': 'Q12973014'}], ['Q3181146', 'P54', {'concept': 'Q12973014'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q3181146 property:P54 ?k } UNION { resource:Q5622642 property:P54 ?k } } . ?k rdf:type ontology:Q12973014 }
John Buck Guy Trottier
action filter_type
action union
action find
entity Guy Trottier
relation member of sports team
action find
entity John Buck
relation member of sports team
type sports team
{'OR': [['Guy Trottier', 'member of sports team', {'concept': 'sports team'}], ['John Buck', 'member of sports team', {'concept': 'sports team'}]]}
SELECT DISTINCT ?k WHERE { { { resource:John_Buck property:member_of_sports_team ?k } UNION { resource:Guy_Trottier property:member_of_sports_team ?k } } . ?k rdf:type ontology:sports_team }
[]
sports team
Q466586 Q744530 Q653772 Q650829 Q848117 Q743309 Q652879 Q692417 Q746379 Q188984
SYSTEM
Some of them are Seattle Mariners, Kansas City Royals, Pittsburgh Pirates, Toronto Blue Jays, Houston Astros, Los Angeles Angels of Anaheim, Miami Marlins, New York Mets, Ottawa Nationals, New York Rangers
Q650829 Q848117 Q188984 Q652879 Q203384 Q653772 Q466586 Q744530 Q461595 Q746379 Q743309 Q692417
OR((Q5622642,P54,c(Q12973014)), (Q3181146,P54,c(Q12973014)))
action filter_type
action union
action find
entity Q5622642
relation P54
action find
entity Q3181146
relation P54
type Q12973014
The [ANSWERS] are Guy Trottier or John Buck a member of
{'OR': [['Q5622642', 'P54', {'concept': 'Q12973014'}], ['Q3181146', 'P54', {'concept': 'Q12973014'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q3181146 property:P54 ?k } UNION { resource:Q5622642 property:P54 ?k } } . ?k rdf:type ontology:Q12973014 }
Toronto Blue Jays Houston Astros New York Rangers Miami Marlins Toronto Maple Leafs Pittsburgh Pirates Seattle Mariners Kansas City Royals Atlanta Braves Ottawa Nationals Los Angeles Angels of Anaheim New York Mets
The Seattle Mariners, Kansas City Royals, Pittsburgh Pirates, Toronto Blue Jays, Houston Astros, Los Angeles Angels of Anaheim, Miami Marlins, New York Mets, Ottawa Nationals and New York Rangers are Guy Trottier or John Buck a member of
Seattle Mariners Kansas City Royals Pittsburgh Pirates Toronto Blue Jays Houston Astros Los Angeles Angels of Anaheim Miami Marlins New York Mets Ottawa Nationals New York Rangers
action filter_type
action union
action find
entity Guy Trottier
relation member of sports team
action find
entity John Buck
relation member of sports team
type sports team
{'OR': [['Guy Trottier', 'member of sports team', {'concept': 'sports team'}], ['John Buck', 'member of sports team', {'concept': 'sports team'}]]}
SELECT DISTINCT ?k WHERE { { { resource:John_Buck property:member_of_sports_team ?k } UNION { resource:Guy_Trottier property:member_of_sports_team ?k } } . ?k rdf:type ontology:sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q392
P1412
Q34770
USER
Which language can Bob Dylan understand ?
(Q392,P1412,c(Q34770))
action filter_type
action find
entity Q392
relation P1412
type Q34770
['Q392', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q392 property:P1412 ?k . ?k rdf:type ontology:Q34770 }
Bob Dylan
action filter_type
action find
entity Bob Dylan
relation languages spoken, written or signed
type language
['Bob Dylan', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Bob_Dylan property:languages_spoken,_written_or_signed ?k . ?k rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q392,P1412,c(Q34770))
action filter_type
action find
entity Q392
relation P1412
type Q34770
Bob Dylan can understand [ANSWER]
['Q392', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q392 property:P1412 ?k . ?k rdf:type ontology:Q34770 }
English
Bob Dylan can understand English
English
action filter_type
action find
entity Bob Dylan
relation languages spoken, written or signed
type language
['Bob Dylan', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Bob_Dylan property:languages_spoken,_written_or_signed ?k . ?k rdf:type ontology:language }
[]