Simple Question (Direct)
Simple Question
Q1352273
P57
Q502895
USER
Which person directed If All the Guys in the World ?
(Q1352273,P57,c(Q502895))
action filter_type
action find
entity Q1352273
relation P57
type Q502895
['Q1352273', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q1352273 property:P57 ?m . ?m rdf:type ontology:Q502895 }
If All the Guys in the World
action filter_type
action find
entity If All the Guys in the World
relation director
type common name
['If All the Guys in the World', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:If_All_the_Guys_in_the_World property:director ?m . ?m rdf:type ontology:common_name }
[]
common name
Q728214
SYSTEM
Christian-Jaque
Q728214
(Q1352273,P57,c(Q502895))
action filter_type
action find
entity Q1352273
relation P57
type Q502895
[ANSWER] directed If All the Guys in the World
['Q1352273', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q1352273 property:P57 ?m . ?m rdf:type ontology:Q502895 }
Christian-Jaque
Christian-Jaque directed If All the Guys in the World
Christian-Jaque
action filter_type
action find
entity If All the Guys in the World
relation director
type common name
['If All the Guys in the World', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:If_All_the_Guys_in_the_World property:director ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1352273
P58
Q502895
USER
Which people wrote the script for If All the Guys in the World ?
(Q1352273,P58,c(Q502895))
action filter_type
action find
entity Q1352273
relation P58
type Q502895
['Q1352273', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q1352273 property:P58 ?f . ?f rdf:type ontology:Q502895 }
If All the Guys in the World
action filter_type
action find
entity If All the Guys in the World
relation screenwriter
type common name
['If All the Guys in the World', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:If_All_the_Guys_in_the_World property:screenwriter ?f . ?f rdf:type ontology:common_name }
[]
common name
Q55384 Q728214 Q3159945
SYSTEM
Henri-Georges Clouzot, Christian-Jaque, Jacques Rémy
Q55384 Q728214 Q3159945
(Q1352273,P58,c(Q502895))
action filter_type
action find
entity Q1352273
relation P58
type Q502895
[ANSWERS] wrote the script for If All the Guys in the World
['Q1352273', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q1352273 property:P58 ?f . ?f rdf:type ontology:Q502895 }
Henri-Georges Clouzot Christian-Jaque Jacques Rémy
Henri-Georges Clouzot, Christian-Jaque and Jacques Rémy wrote the script for If All the Guys in the World
Henri-Georges Clouzot Christian-Jaque Jacques Rémy
action filter_type
action find
entity If All the Guys in the World
relation screenwriter
type common name
['If All the Guys in the World', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:If_All_the_Guys_in_the_World property:screenwriter ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4345913
Q502895
USER
And how about The Legend of the Lone Ranger?
(Q4345913,P58,c(Q502895))
action filter_type
action find
entity Q4345913
relation P58
type Q502895
['Q4345913', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q4345913 property:P58 ?u . ?u rdf:type ontology:Q502895 }
The Legend of the Lone Ranger
action filter_type
action find
entity The Legend of the Lone Ranger
relation screenwriter
type common name
['The Legend of the Lone Ranger', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:The_Legend_of_the_Lone_Ranger property:screenwriter ?u . ?u rdf:type ontology:common_name }
[]
common name
Q3156109
SYSTEM
Ivan Goff
Q3156109
(Q4345913,P58,c(Q502895))
action filter_type
action find
entity Q4345913
relation P58
type Q502895
[ANSWER]
['Q4345913', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q4345913 property:P58 ?u . ?u rdf:type ontology:Q502895 }
Ivan Goff
Ivan Goff
action filter_type
action find
entity The Legend of the Lone Ranger
relation screenwriter
type common name
['The Legend of the Lone Ranger', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:The_Legend_of_the_Lone_Ranger property:screenwriter ?u . ?u rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q3156109 Q3297214
P58
Q838948
USER
Did that person do the screenwriting for Masquerade ?
(Q3297214,P58,Q3156109)
action is_in
entity Q3297214
action find
entity Q3156109
relation P58
['Q3297214', 'P58', 'Q3156109']
ASK WHERE { resource:Q3156109 property:P58 resource:Q3297214 }
Ivan Goff Masquerade
action is_in
entity Masquerade
action find
entity Ivan Goff
relation screenwriter
['Masquerade', 'screenwriter', 'Ivan Goff']
ASK WHERE { resource:Ivan_Goff property:screenwriter resource:Masquerade }
[]
work of art
SYSTEM
NO
(Q3297214,P58,Q3156109)
action is_in
entity Q3297214
action find
entity Q3156109
relation P58
[ANSWER]
['Q3297214', 'P58', 'Q3156109']
ASK WHERE { resource:Q3156109 property:P58 resource:Q3297214 }
No
action is_in
entity Masquerade
action find
entity Ivan Goff
relation screenwriter
['Masquerade', 'screenwriter', 'Ivan Goff']
ASK WHERE { resource:Ivan_Goff property:screenwriter resource:Masquerade }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q3156109
P58
Q838948
USER
How many works of art have Ivan Goff as screenwriter ?
(c(Q838948),P58,Q3156109)
action count
action filter_type
action find_reverse
entity Q3156109
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q3156109']
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o property:P58 resource:Q3156109 . ?o rdf:type ontology:Q838948 }
Ivan Goff
action count
action filter_type
action find_reverse
entity Ivan Goff
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Ivan Goff']
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o property:screenwriter resource:Ivan_Goff . ?o rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
13
Q1969572 Q1552174 Q607337 Q2937312 Q3331219 Q201209 Q136592 Q2311084 Q904676 Q3307601 Q680594 Q1057548 Q4345913
(c(Q838948),P58,Q3156109)
action count
action filter_type
action find_reverse
entity Q3156109
relation P58
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P58', 'Q3156109']
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o property:P58 resource:Q3156109 . ?o rdf:type ontology:Q838948 }
Backfire Green Fire White Heat King of the Khyber Rifles My Love Came Back Captain Horatio Hornblower R.N. Man of a Thousand Faces White Witch Doctor Goodbye, My Fancy Portrait in Black Midnight Lace Serenade The Legend of the Lone Ranger
13
action count
action filter_type
action find_reverse
entity Ivan Goff
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Ivan Goff']
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { ?o property:screenwriter resource:Ivan_Goff . ?o rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can atmost 5039 people perform with ?
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5039
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?l } . FILTER ( ?q <= 5039 ) }
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5039
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?l } . FILTER ( ?q <= 5039 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q8355 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 5039
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:P1303 ?l . ?l rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?l } . FILTER ( ?q <= 5039 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello violin cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Which musical instruments can atmost 5039 people perform with
davul harpsichord Wurlitzer electric piano
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 5039
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:instrument ?l . ?l rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?l } . FILTER ( ?q <= 5039 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q21590318 Q1352273
P27 P495
Q15617994
USER
Which administrative territories are the countries of origin of If All the Guys in the World and are the countries of citizenship of Alban Lafont ?
AND((Q1352273,P495,c(Q15617994)), (Q21590318,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q1352273
relation P495
action find
entity Q21590318
relation P27
type Q15617994
{'AND': [['Q1352273', 'P495', {'concept': 'Q15617994'}], ['Q21590318', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { resource:Q1352273 property:P495 ?o . resource:Q21590318 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
Alban Lafont If All the Guys in the World
action filter_type
action intersection
action find
entity If All the Guys in the World
relation country of origin
action find
entity Alban Lafont
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['If All the Guys in the World', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Alban Lafont', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { resource:If_All_the_Guys_in_the_World property:country_of_origin ?o . resource:Alban_Lafont property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
AND((Q1352273,P495,c(Q15617994)), (Q21590318,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q1352273
relation P495
action find
entity Q21590318
relation P27
type Q15617994
[ANSWER] is the countries of origin of If All the Guys in the World and is the countries of citizenship of Alban Lafont
{'AND': [['Q1352273', 'P495', {'concept': 'Q15617994'}], ['Q21590318', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { resource:Q1352273 property:P495 ?o . resource:Q21590318 property:P27 ?o . ?o rdf:type ontology:Q15617994 }
France
France is the countries of origin of If All the Guys in the World and is the countries of citizenship of Alban Lafont
France
action filter_type
action intersection
action find
entity If All the Guys in the World
relation country of origin
action find
entity Alban Lafont
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['If All the Guys in the World', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Alban Lafont', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { resource:If_All_the_Guys_in_the_World property:country_of_origin ?o . resource:Alban_Lafont property:country_of_citizenship ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q822 Q142
P27
Q502895
USER
Which people are a citizen of France and Lebanon ?
AND((c(Q502895),P27,Q142), (c(Q502895),P27,Q822))
action filter_type
action intersection
action find_reverse
entity Q142
relation P27
action find_reverse
entity Q822
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q142'], [{'concept': 'Q502895'}, 'P27', 'Q822']]}
SELECT DISTINCT ?s WHERE { ?s property:P27 resource:Q822 . ?s property:P27 resource:Q142 . ?s rdf:type ontology:Q502895 }
Lebanon France
action filter_type
action intersection
action find_reverse
entity France
relation country of citizenship
action find_reverse
entity Lebanon
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'France'], [{'concept': 'common name'}, 'country of citizenship', 'Lebanon']]}
SELECT DISTINCT ?s WHERE { ?s property:country_of_citizenship resource:Lebanon . ?s property:country_of_citizenship resource:France . ?s rdf:type ontology:common_name }
[]
common name
Q465721 Q3159949 Q3270032 Q2528681 Q6550185 Q17486592 Q3148855 Q6481840 Q2847257 Q2574452
SYSTEM
Some of them are Andrée Chedid, Jacques Saadé, Léa Salamé, Abdel Rahman El Bacha, Lina Murr Nehme, Selim Mouzannar, Imad Lahoud, Lamia Ziadé, André Bercoff, Ibrahim Maalouf
Q3270032 Q3425987 Q2574452 Q3148855 Q465721 Q6481840 Q2847257 Q2528681 Q3340770 Q21126803 Q6550185 Q20980482 Q17486592 Q7289529 Q3159949
AND((c(Q502895),P27,Q142), (c(Q502895),P27,Q822))
action filter_type
action intersection
action find_reverse
entity Q142
relation P27
action find_reverse
entity Q822
relation P27
type Q502895
[ANSWERS] are a citizen of France and Lebanon
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q142'], [{'concept': 'Q502895'}, 'P27', 'Q822']]}
SELECT DISTINCT ?s WHERE { ?s property:P27 resource:Q822 . ?s property:P27 resource:Q142 . ?s rdf:type ontology:Q502895 }
Léa Salamé René Chamussy Ibrahim Maalouf Imad Lahoud Andrée Chedid Lamia Ziadé André Bercoff Abdel Rahman El Bacha Nicolas Sarkis Bachar Mar-Khalifé Lina Murr Nehme Sandrine Atallah Selim Mouzannar Rami Khalifé Jacques Saadé
Andrée Chedid, Jacques Saadé, Léa Salamé, Abdel Rahman El Bacha, Lina Murr Nehme, Selim Mouzannar, Imad Lahoud, Lamia Ziadé, André Bercoff and Ibrahim Maalouf are a citizen of France and Lebanon
Andrée Chedid Jacques Saadé Léa Salamé Abdel Rahman El Bacha Lina Murr Nehme Selim Mouzannar Imad Lahoud Lamia Ziadé André Bercoff Ibrahim Maalouf
action filter_type
action intersection
action find_reverse
entity France
relation country of citizenship
action find_reverse
entity Lebanon
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'France'], [{'concept': 'common name'}, 'country of citizenship', 'Lebanon']]}
SELECT DISTINCT ?s WHERE { ?s property:country_of_citizenship resource:Lebanon . ?s property:country_of_citizenship resource:France . ?s rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q555913 Q3156109
P47 P27
Q1048835
USER
Which political territories are the native countriesof Ivan Goff or have a shared border with Castril ?
OR((Q3156109,P27,c(Q1048835)), (Q555913,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q3156109
relation P27
action find
entity Q555913
relation P47
type Q1048835
{'OR': [['Q3156109', 'P27', {'concept': 'Q1048835'}], ['Q555913', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q3156109 property:P27 ?e } UNION { resource:Q555913 property:P47 ?e } } . ?e rdf:type ontology:Q1048835 }
Castril Ivan Goff
action filter_type
action union
action find
entity Ivan Goff
relation country of citizenship
action find
entity Castril
relation shares border with
type political territorial entity
{'OR': [['Ivan Goff', 'country of citizenship', {'concept': 'political territorial entity'}], ['Castril', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Ivan_Goff property:country_of_citizenship ?e } UNION { resource:Castril property:shares_border_with ?e } } . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1645091 Q557947 Q518339 Q1632828 Q575709 Q555918 Q408 Q554238
SYSTEM
Santiago-Pontones, Cortes de Baza, Cazorla, Peal de Becerro, Huéscar, Castilléjar, Australia, Benamaurel
Q1645091 Q557947 Q518339 Q1632828 Q575709 Q555918 Q408 Q554238
OR((Q3156109,P27,c(Q1048835)), (Q555913,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q3156109
relation P27
action find
entity Q555913
relation P47
type Q1048835
[ANSWERS] are the native countriesof Ivan Goff or have a shared border with Castril
{'OR': [['Q3156109', 'P27', {'concept': 'Q1048835'}], ['Q555913', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q3156109 property:P27 ?e } UNION { resource:Q555913 property:P47 ?e } } . ?e rdf:type ontology:Q1048835 }
Santiago-Pontones Cortes de Baza Cazorla Peal de Becerro Huéscar Castilléjar Australia Benamaurel
Santiago-Pontones, Cortes de Baza, Cazorla, Peal de Becerro, Huéscar, Castilléjar, Australia and Benamaurel are the native countriesof Ivan Goff or have a shared border with Castril
Santiago-Pontones Cortes de Baza Cazorla Peal de Becerro Huéscar Castilléjar Australia Benamaurel
action filter_type
action union
action find
entity Ivan Goff
relation country of citizenship
action find
entity Castril
relation shares border with
type political territorial entity
{'OR': [['Ivan Goff', 'country of citizenship', {'concept': 'political territorial entity'}], ['Castril', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Ivan_Goff property:country_of_citizenship ?e } UNION { resource:Castril property:shares_border_with ?e } } . ?e rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19355696 Q1352273
P495 P17
Q15617994
USER
Which administrative territories are the countries of origin of If All the Guys in the World or do Nieuwland Parc belong to ?
OR((Q1352273,P495,c(Q15617994)), (Q19355696,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1352273
relation P495
action find
entity Q19355696
relation P17
type Q15617994
{'OR': [['Q1352273', 'P495', {'concept': 'Q15617994'}], ['Q19355696', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1352273 property:P495 ?f } UNION { resource:Q19355696 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
Nieuwland Parc If All the Guys in the World
action filter_type
action union
action find
entity If All the Guys in the World
relation country of origin
action find
entity Nieuwland Parc
relation country
type designation for an administrative territorial entity
{'OR': [['If All the Guys in the World', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Nieuwland Parc', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:If_All_the_Guys_in_the_World property:country_of_origin ?f } UNION { resource:Nieuwland_Parc property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q38 Q55
SYSTEM
France, Italy, Netherlands
Q142 Q38 Q55
OR((Q1352273,P495,c(Q15617994)), (Q19355696,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1352273
relation P495
action find
entity Q19355696
relation P17
type Q15617994
[ANSWERS] are the countries of origin of If All the Guys in the World or do Nieuwland Parc belong to
{'OR': [['Q1352273', 'P495', {'concept': 'Q15617994'}], ['Q19355696', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q1352273 property:P495 ?f } UNION { resource:Q19355696 property:P17 ?f } } . ?f rdf:type ontology:Q15617994 }
France Italy Netherlands
France, Italy and Netherlands are the countries of origin of If All the Guys in the World or do Nieuwland Parc belong to
France Italy Netherlands
action filter_type
action union
action find
entity If All the Guys in the World
relation country of origin
action find
entity Nieuwland Parc
relation country
type designation for an administrative territorial entity
{'OR': [['If All the Guys in the World', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Nieuwland Parc', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:If_All_the_Guys_in_the_World property:country_of_origin ?f } UNION { resource:Nieuwland_Parc property:country ?f } } . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2632206
P840
Q166142
USER
Do Euro Truck Simulator 2 have their setting located at those administrative territories ?
(Q2632206,P840,Q142) (Q2632206,P840,Q38) (Q2632206,P840,Q55)
action is_in
entity prev_answer
action find
entity Q2632206
relation P840
['Q2632206', 'P840', 'Q142'] ['Q2632206', 'P840', 'Q38'] ['Q2632206', 'P840', 'Q55']
ASK WHERE { resource:Q2632206 property:P840 ?o . VALUES ( ?o ) { ( resource:Q142 ) ( resource:Q38 ) ( resource:Q55 ) } }
Euro Truck Simulator 2
action is_in
entity prev_answer
action find
entity Euro Truck Simulator 2
relation narrative location
['Euro Truck Simulator 2', 'narrative location', 'France'] ['Euro Truck Simulator 2', 'narrative location', 'Italy'] ['Euro Truck Simulator 2', 'narrative location', 'Netherlands']
ASK WHERE { resource:Euro_Truck_Simulator_2 property:narrative_location ?o . VALUES ( ?o ) { ( resource:France ) ( resource:Italy ) ( resource:Netherlands ) } }
[]
application
SYSTEM
YES
(Q2632206,P840,Q142) (Q2632206,P840,Q38) (Q2632206,P840,Q55)
action is_in
entity prev_answer
action find
entity Q2632206
relation P840
[ANSWER]
['Q2632206', 'P840', 'Q142'] ['Q2632206', 'P840', 'Q38'] ['Q2632206', 'P840', 'Q55']
ASK WHERE { resource:Q2632206 property:P840 ?o . VALUES ( ?o ) { ( resource:Q142 ) ( resource:Q38 ) ( resource:Q55 ) } }
Yes
action is_in
entity prev_answer
action find
entity Euro Truck Simulator 2
relation narrative location
['Euro Truck Simulator 2', 'narrative location', 'France'] ['Euro Truck Simulator 2', 'narrative location', 'Italy'] ['Euro Truck Simulator 2', 'narrative location', 'Netherlands']
ASK WHERE { resource:Euro_Truck_Simulator_2 property:narrative_location ?o . VALUES ( ?o ) { ( resource:France ) ( resource:Italy ) ( resource:Netherlands ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q519749 Q554238
P47
Q1048835
USER
Which political territories share the border with Benamaurel or Las Omañas ?
OR((Q554238,P47,c(Q1048835)), (Q519749,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q554238
relation P47
action find
entity Q519749
relation P47
type Q1048835
{'OR': [['Q554238', 'P47', {'concept': 'Q1048835'}], ['Q519749', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q519749 property:P47 ?q } UNION { resource:Q554238 property:P47 ?q } } . ?q rdf:type ontology:Q1048835 }
Las Omañas Benamaurel
action filter_type
action union
action find
entity Benamaurel
relation shares border with
action find
entity Las Omañas
relation shares border with
type political territorial entity
{'OR': [['Benamaurel', 'shares border with', {'concept': 'political territorial entity'}], ['Las Omañas', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Las_Omañas property:shares_border_with ?q } UNION { resource:Benamaurel property:shares_border_with ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q137219 Q557947 Q1615429 Q559300 Q555918 Q490472 Q137729 Q137718 Q137174 Q137163
SYSTEM
Some of them are Rioseco de Tapia, Cortes de Baza, Soto y Amío, Cúllar, Castilléjar, Baza, Quintana del Castillo, Cimanes del Tejar, Llamas de la Ribera, Santa María de Ordás
Q1615429 Q137729 Q559300 Q557947 Q555918 Q137219 Q137163 Q137174 Q490472 Q137718 Q555913
OR((Q554238,P47,c(Q1048835)), (Q519749,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q554238
relation P47
action find
entity Q519749
relation P47
type Q1048835
[ANSWERS] share the border with Benamaurel or Las Omañas
{'OR': [['Q554238', 'P47', {'concept': 'Q1048835'}], ['Q519749', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q519749 property:P47 ?q } UNION { resource:Q554238 property:P47 ?q } } . ?q rdf:type ontology:Q1048835 }
Soto y Amío Quintana del Castillo Cúllar Cortes de Baza Castilléjar Rioseco de Tapia Santa María de Ordás Llamas de la Ribera Baza Cimanes del Tejar Castril
Rioseco de Tapia, Cortes de Baza, Soto y Amío, Cúllar, Castilléjar, Baza, Quintana del Castillo, Cimanes del Tejar, Llamas de la Ribera and Santa María de Ordás share the border with Benamaurel or Las Omañas
Rioseco de Tapia Cortes de Baza Soto y Amío Cúllar Castilléjar Baza Quintana del Castillo Cimanes del Tejar Llamas de la Ribera Santa María de Ordás
action filter_type
action union
action find
entity Benamaurel
relation shares border with
action find
entity Las Omañas
relation shares border with
type political territorial entity
{'OR': [['Benamaurel', 'shares border with', {'concept': 'political territorial entity'}], ['Las Omañas', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Las_Omañas property:shares_border_with ?q } UNION { resource:Benamaurel property:shares_border_with ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q408
P85
Q7725634 Q484692 Q1048835
USER
Which political territories have lesser number of literary works or hymns as their national anthem than Australia ?
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action less
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action count
action filter_multi_types
action find
entity Q408
relation P85
type Q7725634
type Q484692
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?i ) WHERE { { ?t property:P85 ?h . ?t rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q7725634 } UNION { ?t property:P85 ?h . ?t rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q484692 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { resource:Q408 property:P85 ?j . { ?j rdf:type ?y . VALUES ( ?y ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } } } . FILTER ( ?i < ?r ) }
Australia
action less
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action count
action filter_multi_types
action find
entity Australia
relation anthem
type literary work
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?i ) WHERE { { ?t property:anthem ?h . ?t rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:literary_work } UNION { ?t property:anthem ?h . ?t rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:hymn } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { resource:Australia property:anthem ?j . { ?j rdf:type ?y . VALUES ( ?y ) { ( ontology:literary_work ) ( ontology:hymn ) } } } } . FILTER ( ?i < ?r ) }
[]
literary work hymn political territorial entity
Q183 Q16 Q40
SYSTEM
Germany, Canada, Austria
Q1000 Q183 Q785 Q601252 Q193619 Q685 Q202023 Q763 Q664 Q9676 Q1054923 Q13353 Q5705 Q16 Q170604 Q5785 Q38610 Q3405693 Q18221 Q43448 Q778 Q1785790 Q5783 Q691 Q757 Q9648 Q234 Q35672 Q165783 Q40 Q35086 Q23635 Q192184 Q25228 Q31747 Q25305 Q129286 Q2594990
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action less
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action count
action filter_multi_types
action find
entity Q408
relation P85
type Q7725634
type Q484692
[ANSWERS] have lesser number of literary works or hymns as their national anthem than Australia
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?i ) WHERE { { ?t property:P85 ?h . ?t rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q7725634 } UNION { ?t property:P85 ?h . ?t rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q484692 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { resource:Q408 property:P85 ?j . { ?j rdf:type ?y . VALUES ( ?y ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } } } . FILTER ( ?i < ?r ) }
Gabon Germany Jersey Banovina of Croatia Union of South Africa Solomon Islands Herm Saint Kitts and Nevis New Zealand Isle of Man British Hong Kong Montserrat Catalonia Canada New France Cayman Islands Dominion of Newfoundland Sark Turks and Caicos Islands British Indian Ocean Territory The Bahamas Selbach, Rio Grande do Sul Andalusia Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Flemish Region Pitcairn Islands British Antarctic Territory Austria South Georgia and the South Sandwich Islands Bermuda Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands British Raj Dominion of New Zealand
Germany, Canada and Austria have lesser number of literary works or hymns as their national anthem than Australia
Germany Canada Austria
action less
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action count
action filter_multi_types
action find
entity Australia
relation anthem
type literary work
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?h ) AS ?i ) WHERE { { ?t property:anthem ?h . ?t rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:literary_work } UNION { ?t property:anthem ?h . ?t rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:hymn } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { resource:Australia property:anthem ?j . { ?j rdf:type ?y . VALUES ( ?y ) { ( ontology:literary_work ) ( ontology:hymn ) } } } } . FILTER ( ?i < ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q769
P85
Q7725634 Q484692 Q1048835
USER
And what about Grenada?
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action less
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action count
action filter_multi_types
action find
entity Q769
relation P85
type Q7725634
type Q484692
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?h WHERE { VALUES ( ?f ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?w rdf:type ?f } GROUP BY ?h } . FILTER ( ?e < ?k ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { resource:Q769 property:P85 ?p . { VALUES ( ?g ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?p rdf:type ?g } } } }
Grenada
action less
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action count
action filter_multi_types
action find
entity Grenada
relation anthem
type literary work
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?h WHERE { VALUES ( ?f ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?w rdf:type ?f } GROUP BY ?h } . FILTER ( ?e < ?k ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { resource:Grenada property:anthem ?p . { VALUES ( ?g ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?p rdf:type ?g } } } }
[]
literary work hymn political territorial entity
Q183 Q16 Q40
SYSTEM
Germany, Canada, Austria
Q1000 Q183 Q785 Q601252 Q193619 Q685 Q202023 Q763 Q664 Q9676 Q1054923 Q13353 Q5705 Q16 Q170604 Q5785 Q38610 Q3405693 Q18221 Q43448 Q778 Q1785790 Q5783 Q691 Q757 Q9648 Q234 Q35672 Q165783 Q40 Q35086 Q23635 Q192184 Q25228 Q31747 Q25305 Q129286 Q2594990
(c(Q1048835),P85,c(Q7725634)|c(Q484692))
action less
action union
action find_tuple_counts
relation P85
type Q1048835
type Q7725634
action find_tuple_counts
relation P85
type Q1048835
type Q484692
action count
action filter_multi_types
action find
entity Q769
relation P85
type Q7725634
type Q484692
[ANSWERS]
[{'concept': 'Q1048835'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?h WHERE { VALUES ( ?f ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?w rdf:type ?f } GROUP BY ?h } . FILTER ( ?e < ?k ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { resource:Q769 property:P85 ?p . { VALUES ( ?g ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?p rdf:type ?g } } } }
Gabon Germany Jersey Banovina of Croatia Union of South Africa Solomon Islands Herm Saint Kitts and Nevis New Zealand Isle of Man British Hong Kong Montserrat Catalonia Canada New France Cayman Islands Dominion of Newfoundland Sark Turks and Caicos Islands British Indian Ocean Territory The Bahamas Selbach, Rio Grande do Sul Andalusia Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Flemish Region Pitcairn Islands British Antarctic Territory Austria South Georgia and the South Sandwich Islands Bermuda Saint Helena, Ascension and Tristan da Cunha Anguilla Irish Free State British Virgin Islands British Raj Dominion of New Zealand
Germany Canada Austria
action less
action union
action find_tuple_counts
relation anthem
type political territorial entity
type literary work
action find_tuple_counts
relation anthem
type political territorial entity
type hymn
action count
action filter_multi_types
action find
entity Grenada
relation anthem
type literary work
type hymn
[{'concept': 'political territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) ?h WHERE { VALUES ( ?f ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?w rdf:type ?f } GROUP BY ?h } . FILTER ( ?e < ?k ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { resource:Grenada property:anthem ?p . { VALUES ( ?g ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?p rdf:type ?g } } } }
[]