Simple Question (Direct)
Simple Question
Q12190734
P27
Q15617994
USER
Which administrative territory is Theodor Tomášek a civilian of ?
(Q12190734,P27,c(Q15617994))
action filter_type
action find
entity Q12190734
relation P27
type Q15617994
['Q12190734', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q12190734 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Theodor Tomášek
action filter_type
action find
entity Theodor Tomášek
relation country of citizenship
type designation for an administrative territorial entity
['Theodor Tomášek', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Theodor_Tomášek property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q213
SYSTEM
Czech Republic
Q213
(Q12190734,P27,c(Q15617994))
action filter_type
action find
entity Q12190734
relation P27
type Q15617994
[ANSWER] is Theodor Tomášek a civilian of
['Q12190734', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q12190734 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Czech Republic
Czech Republic is Theodor Tomášek a civilian of
Czech Republic
action filter_type
action find
entity Theodor Tomášek
relation country of citizenship
type designation for an administrative territorial entity
['Theodor Tomášek', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Theodor_Tomášek property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12190734
P20
Q515
USER
Where did the demise of Theodor Tomášek occur ?
(Q12190734,P20,c(Q515))
action filter_type
action find
entity Q12190734
relation P20
type Q515
['Q12190734', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { resource:Q12190734 property:P20 ?c . ?c rdf:type ontology:Q515 }
Theodor Tomášek
action filter_type
action find
entity Theodor Tomášek
relation place of death
type city
['Theodor Tomášek', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { resource:Theodor_Tomášek property:place_of_death ?c . ?c rdf:type ontology:city }
[]
city
Q1645575
SYSTEM
Kostelec nad Orlicí
Q1645575
(Q12190734,P20,c(Q515))
action filter_type
action find
entity Q12190734
relation P20
type Q515
The demise of Theodor Tomášek occurred of [ANSWER]
['Q12190734', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { resource:Q12190734 property:P20 ?c . ?c rdf:type ontology:Q515 }
Kostelec nad Orlicí
The demise of Theodor Tomášek occurred of Kostelec nad Orlicí
Kostelec nad Orlicí
action filter_type
action find
entity Theodor Tomášek
relation place of death
type city
['Theodor Tomášek', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { resource:Theodor_Tomášek property:place_of_death ?c . ?c rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12190734
P136
Q15198957
USER
Which aspect of music is the genre for Theodor Tomášek ?
(Q12190734,P136,c(Q15198957))
action filter_type
action find
entity Q12190734
relation P136
type Q15198957
['Q12190734', 'P136', {'concept': 'Q15198957'}]
SELECT DISTINCT ?q WHERE { resource:Q12190734 property:P136 ?q . ?q rdf:type ontology:Q15198957 }
Theodor Tomášek
action filter_type
action find
entity Theodor Tomášek
relation genre
type aspect of music
['Theodor Tomášek', 'genre', {'concept': 'aspect of music'}]
SELECT DISTINCT ?q WHERE { resource:Theodor_Tomášek property:genre ?q . ?q rdf:type ontology:aspect_of_music }
[]
aspect of music
Q1344
SYSTEM
opera
Q1344
(Q12190734,P136,c(Q15198957))
action filter_type
action find
entity Q12190734
relation P136
type Q15198957
[ANSWER] is the genre for Theodor Tomášek
['Q12190734', 'P136', {'concept': 'Q15198957'}]
SELECT DISTINCT ?q WHERE { resource:Q12190734 property:P136 ?q . ?q rdf:type ontology:Q15198957 }
opera
Opera is the genre for Theodor Tomášek
opera
action filter_type
action find
entity Theodor Tomášek
relation genre
type aspect of music
['Theodor Tomášek', 'genre', {'concept': 'aspect of music'}]
SELECT DISTINCT ?q WHERE { resource:Theodor_Tomášek property:genre ?q . ?q rdf:type ontology:aspect_of_music }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q12190734
Q151885
USER
And which concept?
(Q12190734,P136,c(Q151885))
action filter_type
action find
entity Q12190734
relation P136
type Q151885
['Q12190734', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?g WHERE { resource:Q12190734 property:P136 ?g . ?g rdf:type ontology:Q151885 }
Theodor Tomášek
action filter_type
action find
entity Theodor Tomášek
relation genre
type concept
['Theodor Tomášek', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?g WHERE { resource:Theodor_Tomášek property:genre ?g . ?g rdf:type ontology:concept }
[]
concept
Q9730
SYSTEM
classical music
Q9730
(Q12190734,P136,c(Q151885))
action filter_type
action find
entity Q12190734
relation P136
type Q151885
[ANSWER]
['Q12190734', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?g WHERE { resource:Q12190734 property:P136 ?g . ?g rdf:type ontology:Q151885 }
classical music
classical music
action filter_type
action find
entity Theodor Tomášek
relation genre
type concept
['Theodor Tomášek', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?g WHERE { resource:Theodor_Tomášek property:genre ?g . ?g rdf:type ontology:concept }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q15617994 Q11060274 Q2342494
USER
How many administrative territories are expressed in around 1 prints and collectables ?
(c(Q11060274)|c(Q2342494),P180,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
value 1
[[{'concept': 'Q11060274'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?f WHERE { { ?m property:P180 ?f . ?m rdf:type ontology:Q2342494 . ?f rdf:type ontology:Q15617994 } UNION { ?m property:P180 ?f . ?f rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q11060274 } } GROUP BY ?f } . FILTER ( ?j = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
value 1
[[{'concept': 'print'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?f WHERE { { ?m property:depicts ?f . ?m rdf:type ontology:collectable . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?m property:depicts ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:print } } GROUP BY ?f } . FILTER ( ?j = 1 ) }
[]
designation for an administrative territorial entity print collectable
SYSTEM
11
Q47505 Q131596 Q1028 Q17 Q298 Q13320 Q79 Q1011 Q913434 Q376896 Q34876
(c(Q11060274)|c(Q2342494),P180,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
value 1
[ANSWER]
[[{'concept': 'Q11060274'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?f WHERE { { ?m property:P180 ?f . ?m rdf:type ontology:Q2342494 . ?f rdf:type ontology:Q15617994 } UNION { ?m property:P180 ?f . ?f rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q11060274 } } GROUP BY ?f } . FILTER ( ?j = 1 ) }
Dolo farm Morocco Japan Chile Savona Egypt Cape Verde Les Halles Grenelle province
11
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type print
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
value 1
[[{'concept': 'print'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) ?f WHERE { { ?m property:depicts ?f . ?m rdf:type ontology:collectable . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?m property:depicts ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:print } } GROUP BY ?f } . FILTER ( ?j = 1 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q39
P37
Q34770 Q5962346 Q15617994
USER
Which administrative territories have their official language as greater number of languages or classification schemes than Switzerland ?
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action greater
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action count
action filter_multi_types
action find
entity Q39
relation P37
type Q34770
type Q5962346
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?w ) WHERE { { ?y property:P37 ?e . ?y rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q34770 } UNION { ?y property:P37 ?e . ?y rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q5962346 } } GROUP BY ?y } . FILTER ( ?w > ?h ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Q39 property:P37 ?o . { { ?o rdf:type ontology:Q5962346 } UNION { ?o rdf:type ontology:Q34770 } } } } }
Switzerland
action greater
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action count
action filter_multi_types
action find
entity Switzerland
relation official language
type language
type classification scheme
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?w ) WHERE { { ?y property:official_language ?e . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:language } UNION { ?y property:official_language ?e . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:classification_scheme } } GROUP BY ?y } . FILTER ( ?w > ?h ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Switzerland property:official_language ?o . { { ?o rdf:type ontology:classification_scheme } UNION { ?o rdf:type ontology:language } } } } }
[]
language classification scheme designation for an administrative territorial entity
Q29 Q750
SYSTEM
Spain, Bolivia
Q29 Q750
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action greater
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action count
action filter_multi_types
action find
entity Q39
relation P37
type Q34770
type Q5962346
[ANSWERS] have their official language as greater number of languages or classification schemes than Switzerland
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?w ) WHERE { { ?y property:P37 ?e . ?y rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q34770 } UNION { ?y property:P37 ?e . ?y rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q5962346 } } GROUP BY ?y } . FILTER ( ?w > ?h ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Q39 property:P37 ?o . { { ?o rdf:type ontology:Q5962346 } UNION { ?o rdf:type ontology:Q34770 } } } } }
Spain Bolivia
Spain and Bolivia have their official language as greater number of languages or classification schemes than Switzerland
Spain Bolivia
action greater
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action count
action filter_multi_types
action find
entity Switzerland
relation official language
type language
type classification scheme
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?e ) AS ?w ) WHERE { { ?y property:official_language ?e . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:language } UNION { ?y property:official_language ?e . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:classification_scheme } } GROUP BY ?y } . FILTER ( ?w > ?h ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?h ) WHERE { resource:Switzerland property:official_language ?o . { { ?o rdf:type ontology:classification_scheme } UNION { ?o rdf:type ontology:language } } } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q11379147
P27
Q502895
USER
Are Ryūji Ise a native of those administrative territories ?
(Q11379147,P27,Q29) (Q11379147,P27,Q750)
action is_in
entity prev_answer
action find
entity Q11379147
relation P27
['Q11379147', 'P27', 'Q29'] ['Q11379147', 'P27', 'Q750']
ASK WHERE { VALUES ( ?m ) { ( resource:Q29 ) ( resource:Q750 ) } . resource:Q11379147 property:P27 ?m }
Ryūji Ise
action is_in
entity prev_answer
action find
entity Ryūji Ise
relation country of citizenship
['Ryūji Ise', 'country of citizenship', 'Spain'] ['Ryūji Ise', 'country of citizenship', 'Bolivia']
ASK WHERE { VALUES ( ?m ) { ( resource:Spain ) ( resource:Bolivia ) } . resource:Ryūji_Ise property:country_of_citizenship ?m }
[]
common name
SYSTEM
NO
(Q11379147,P27,Q29) (Q11379147,P27,Q750)
action is_in
entity prev_answer
action find
entity Q11379147
relation P27
[ANSWER]
['Q11379147', 'P27', 'Q29'] ['Q11379147', 'P27', 'Q750']
ASK WHERE { VALUES ( ?m ) { ( resource:Q29 ) ( resource:Q750 ) } . resource:Q11379147 property:P27 ?m }
No
action is_in
entity prev_answer
action find
entity Ryūji Ise
relation country of citizenship
['Ryūji Ise', 'country of citizenship', 'Spain'] ['Ryūji Ise', 'country of citizenship', 'Bolivia']
ASK WHERE { VALUES ( ?m ) { ( resource:Spain ) ( resource:Bolivia ) } . resource:Ryūji_Ise property:country_of_citizenship ?m }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P636
Q151885 Q12136 Q3249551
USER
How many concepts are the routes of administration of exactly 5 diseases or processes ?
(c(Q12136)|c(Q3249551),P636,c(Q151885))
action count
action equal
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q12136
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
value 5
[[{'concept': 'Q12136'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { FILTER ( ?r = 5 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?v WHERE { { ?x property:P636 ?v . ?v rdf:type ontology:Q151885 . ?x rdf:type ontology:Q12136 } UNION { ?x property:P636 ?v . ?x rdf:type ontology:Q3249551 . ?v rdf:type ontology:Q151885 } } GROUP BY ?v } }
action count
action equal
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type disease
action find_reverse_tuple_counts
relation route of administration
type concept
type process
value 5
[[{'concept': 'disease'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { FILTER ( ?r = 5 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?v WHERE { { ?x property:route_of_administration ?v . ?v rdf:type ontology:concept . ?x rdf:type ontology:disease } UNION { ?x property:route_of_administration ?v . ?x rdf:type ontology:process . ?v rdf:type ontology:concept } } GROUP BY ?v } }
[]
concept disease process
SYSTEM
3
Q21074571 Q1663054 Q10268830
(c(Q12136)|c(Q3249551),P636,c(Q151885))
action count
action equal
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q12136
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
value 5
[ANSWER]
[[{'concept': 'Q12136'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { FILTER ( ?r = 5 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?v WHERE { { ?x property:P636 ?v . ?v rdf:type ontology:Q151885 . ?x rdf:type ontology:Q12136 } UNION { ?x property:P636 ?v . ?x rdf:type ontology:Q3249551 . ?v rdf:type ontology:Q151885 } } GROUP BY ?v } }
eye contact ingestion inhalation
3
action count
action equal
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type disease
action find_reverse_tuple_counts
relation route of administration
type concept
type process
value 5
[[{'concept': 'disease'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { FILTER ( ?r = 5 ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) ?v WHERE { { ?x property:route_of_administration ?v . ?v rdf:type ontology:concept . ?x rdf:type ontology:disease } UNION { ?x property:route_of_administration ?v . ?x rdf:type ontology:process . ?v rdf:type ontology:concept } } GROUP BY ?v } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q519017 Q750
P47 P530
Q1048835
USER
Which political territories have diplomatic relations with Bolivia or share border with Adiós, Navarre ?
OR((Q750,P530,c(Q1048835)), (Q519017,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q750
relation P530
action find
entity Q519017
relation P47
type Q1048835
{'OR': [['Q750', 'P530', {'concept': 'Q1048835'}], ['Q519017', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q750 property:P530 ?v } UNION { resource:Q519017 property:P47 ?v } } . ?v rdf:type ontology:Q1048835 }
Adiós, Navarre Bolivia
action filter_type
action union
action find
entity Bolivia
relation diplomatic relation
action find
entity Adiós, Navarre
relation shares border with
type political territorial entity
{'OR': [['Bolivia', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Adiós, Navarre', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Bolivia property:diplomatic_relation ?v } UNION { resource:Adiós,_Navarre property:shares_border_with ?v } } . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q956576 Q984879 Q1752994 Q183 Q408 Q120453
SYSTEM
Enériz, Uterga, Galar, Germany, Australia, Muruzábal
Q956576 Q984879 Q1752994 Q183 Q408 Q120453
OR((Q750,P530,c(Q1048835)), (Q519017,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q750
relation P530
action find
entity Q519017
relation P47
type Q1048835
[ANSWERS] have diplomatic relations with Bolivia or share border with Adiós, Navarre
{'OR': [['Q750', 'P530', {'concept': 'Q1048835'}], ['Q519017', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q750 property:P530 ?v } UNION { resource:Q519017 property:P47 ?v } } . ?v rdf:type ontology:Q1048835 }
Enériz Uterga Galar Germany Australia Muruzábal
Enériz, Uterga, Galar, Germany, Australia and Muruzábal have diplomatic relations with Bolivia or share border with Adiós, Navarre
Enériz Uterga Galar Germany Australia Muruzábal
action filter_type
action union
action find
entity Bolivia
relation diplomatic relation
action find
entity Adiós, Navarre
relation shares border with
type political territorial entity
{'OR': [['Bolivia', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Adiós, Navarre', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Bolivia property:diplomatic_relation ?v } UNION { resource:Adiós,_Navarre property:shares_border_with ?v } } . ?v rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1030652 Q29
P161 P35
Q502895
USER
Which people are elected as the head of state of Spain or starred in Ricochet ?
OR((Q29,P35,c(Q502895)), (Q1030652,P161,c(Q502895)))
action filter_type
action union
action find
entity Q29
relation P35
action find
entity Q1030652
relation P161
type Q502895
{'OR': [['Q29', 'P35', {'concept': 'Q502895'}], ['Q1030652', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q29 property:P35 ?m } UNION { resource:Q1030652 property:P161 ?m } } . ?m rdf:type ontology:Q502895 }
Ricochet Spain
action filter_type
action union
action find
entity Spain
relation head of state
action find
entity Ricochet
relation cast member
type common name
{'OR': [['Spain', 'head of state', {'concept': 'common name'}], ['Ricochet', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Spain property:head_of_state ?m } UNION { resource:Ricochet property:cast_member ?m } } . ?m rdf:type ontology:common_name }
[]
common name
Q3497183 Q442310 Q19943 Q7333112 Q351812 Q42101 Q498820 Q311271 Q311161 Q309941
SYSTEM
Some of them are Starletta DuPois, Mary Ellen Trainor, Juan Carlos I, Rielle Hunter, Kevin Pollak, Denzel Washington, John Amos, John Lithgow, Jesse Ventura, Ice-T
Q309941 Q351812 Q3497183 Q42101 Q442310 Q234456 Q1147852 Q191045 Q7333112 Q528038 Q935122 Q3178841 Q498820 Q311271 Q311161 Q19943
OR((Q29,P35,c(Q502895)), (Q1030652,P161,c(Q502895)))
action filter_type
action union
action find
entity Q29
relation P35
action find
entity Q1030652
relation P161
type Q502895
[ANSWERS] are elected as the head of state of Spain or starred in Ricochet
{'OR': [['Q29', 'P35', {'concept': 'Q502895'}], ['Q1030652', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q29 property:P35 ?m } UNION { resource:Q1030652 property:P161 ?m } } . ?m rdf:type ontology:Q502895 }
Ice-T Kevin Pollak Starletta DuPois Denzel Washington Mary Ellen Trainor Lindsay Wagner Cylk Cozart Felipe VI Rielle Hunter Victoria Dillard Miguel Sandoval Jim Ishida John Amos John Lithgow Jesse Ventura Juan Carlos I
Starletta DuPois, Mary Ellen Trainor, Juan Carlos I, Rielle Hunter, Kevin Pollak, Denzel Washington, John Amos, John Lithgow, Jesse Ventura and Ice-T are elected as the head of state of Spain or starred in Ricochet
Starletta DuPois Mary Ellen Trainor Juan Carlos I Rielle Hunter Kevin Pollak Denzel Washington John Amos John Lithgow Jesse Ventura Ice-T
action filter_type
action union
action find
entity Spain
relation head of state
action find
entity Ricochet
relation cast member
type common name
{'OR': [['Spain', 'head of state', {'concept': 'common name'}], ['Ricochet', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Spain property:head_of_state ?m } UNION { resource:Ricochet property:cast_member ?m } } . ?m rdf:type ontology:common_name }
[]