Simple Question (Direct)
Simple Question
Q3324465
P1412
Q34770
USER
Which language is Frederic Soler i Hubert capable of writing ?
(Q3324465,P1412,c(Q34770))
action filter_type
action find
entity Q3324465
relation P1412
type Q34770
['Q3324465', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { resource:Q3324465 property:P1412 ?y . ?y rdf:type ontology:Q34770 }
Frederic Soler i Hubert
action filter_type
action find
entity Frederic Soler i Hubert
relation languages spoken, written or signed
type language
['Frederic Soler i Hubert', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { resource:Frederic_Soler_i_Hubert property:languages_spoken,_written_or_signed ?y . ?y rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q3324465,P1412,c(Q34770))
action filter_type
action find
entity Q3324465
relation P1412
type Q34770
[ANSWER] is Frederic Soler i Hubert capable of writing
['Q3324465', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { resource:Q3324465 property:P1412 ?y . ?y rdf:type ontology:Q34770 }
Spanish
Spanish is Frederic Soler i Hubert capable of writing
Spanish
action filter_type
action find
entity Frederic Soler i Hubert
relation languages spoken, written or signed
type language
['Frederic Soler i Hubert', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { resource:Frederic_Soler_i_Hubert property:languages_spoken,_written_or_signed ?y . ?y rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3324465
P20
Q56061
USER
Where did the demise of Frederic Soler i Hubert occur ?
(Q3324465,P20,c(Q56061))
action filter_type
action find
entity Q3324465
relation P20
type Q56061
['Q3324465', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . resource:Q3324465 property:P20 ?v }
Frederic Soler i Hubert
action filter_type
action find
entity Frederic Soler i Hubert
relation place of death
type administrative territorial entity
['Frederic Soler i Hubert', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . resource:Frederic_Soler_i_Hubert property:place_of_death ?v }
[]
administrative territorial entity
Q1492
SYSTEM
Barcelona
Q1492
(Q3324465,P20,c(Q56061))
action filter_type
action find
entity Q3324465
relation P20
type Q56061
The demise of Frederic Soler i Hubert occurred in [ANSWER]
['Q3324465', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . resource:Q3324465 property:P20 ?v }
Barcelona
The demise of Frederic Soler i Hubert occurred in Barcelona
Barcelona
action filter_type
action find
entity Frederic Soler i Hubert
relation place of death
type administrative territorial entity
['Frederic Soler i Hubert', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . resource:Frederic_Soler_i_Hubert property:place_of_death ?v }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3324465
P19
Q56061
USER
Which administrative territory was Frederic Soler i Hubert born in ?
(Q3324465,P19,c(Q56061))
action filter_type
action find
entity Q3324465
relation P19
type Q56061
['Q3324465', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q3324465 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Frederic Soler i Hubert
action filter_type
action find
entity Frederic Soler i Hubert
relation place of birth
type administrative territorial entity
['Frederic Soler i Hubert', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Frederic_Soler_i_Hubert property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1492
SYSTEM
Barcelona
Q1492
(Q3324465,P19,c(Q56061))
action filter_type
action find
entity Q3324465
relation P19
type Q56061
Frederic Soler i Hubert was born in [ANSWER]
['Q3324465', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q3324465 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Barcelona
Frederic Soler i Hubert was born in Barcelona
Barcelona
action filter_type
action find
entity Frederic Soler i Hubert
relation place of birth
type administrative territorial entity
['Frederic Soler i Hubert', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Frederic_Soler_i_Hubert property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q349690
Q56061
USER
And also tell me about Mel Blanc?
(Q349690,P19,c(Q56061))
action filter_type
action find
entity Q349690
relation P19
type Q56061
['Q349690', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q349690 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Mel Blanc
action filter_type
action find
entity Mel Blanc
relation place of birth
type administrative territorial entity
['Mel Blanc', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Mel_Blanc property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q62
SYSTEM
San Francisco
Q62
(Q349690,P19,c(Q56061))
action filter_type
action find
entity Q349690
relation P19
type Q56061
[ANSWER]
['Q349690', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q349690 property:P19 ?p . ?p rdf:type ontology:Q56061 }
San Francisco
San Francisco
action filter_type
action find
entity Mel Blanc
relation place of birth
type administrative territorial entity
['Mel Blanc', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Mel_Blanc property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q62 Q3476598
P190
Q56061
USER
Is Făcău sister town of San Francisco ?
(Q62,P190,Q3476598)
action is_in
entity Q3476598
action find
entity Q62
relation P190
['Q62', 'P190', 'Q3476598']
ASK WHERE { resource:Q62 property:P190 resource:Q3476598 }
San Francisco Făcău
action is_in
entity Făcău
action find
entity San Francisco
relation sister city
['San Francisco', 'sister city', 'Făcău']
ASK WHERE { resource:San_Francisco property:sister_city resource:Făcău }
[]
administrative territorial entity
SYSTEM
NO
(Q62,P190,Q3476598)
action is_in
entity Q3476598
action find
entity Q62
relation P190
[ANSWER]
['Q62', 'P190', 'Q3476598']
ASK WHERE { resource:Q62 property:P190 resource:Q3476598 }
No
action is_in
entity Făcău
action find
entity San Francisco
relation sister city
['San Francisco', 'sister city', 'Făcău']
ASK WHERE { resource:San_Francisco property:sister_city resource:Făcău }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1492 Q8686 Q8717
P190
Q56061
USER
Is Barcelona sister town of Shanghai and Seville ?
(Q1492,P190,Q8686) (Q1492,P190,Q8717)
action is_in
entity Q1492
action intersection
action find_reverse
entity Q8686
relation P190
action find_reverse
entity Q8717
relation P190
['Q1492', 'P190', 'Q8686'] ['Q1492', 'P190', 'Q8717']
ASK WHERE { resource:Q1492 property:P190 resource:Q8717 . resource:Q1492 property:P190 resource:Q8686 }
Barcelona Shanghai Seville
action is_in
entity Barcelona
action intersection
action find_reverse
entity Shanghai
relation sister city
action find_reverse
entity Seville
relation sister city
['Barcelona', 'sister city', 'Shanghai'] ['Barcelona', 'sister city', 'Seville']
ASK WHERE { resource:Barcelona property:sister_city resource:Seville . resource:Barcelona property:sister_city resource:Shanghai }
[]
administrative territorial entity
SYSTEM
YES
(Q1492,P190,Q8686) (Q1492,P190,Q8717)
action is_in
entity Q1492
action intersection
action find_reverse
entity Q8686
relation P190
action find_reverse
entity Q8717
relation P190
[ANSWER]
['Q1492', 'P190', 'Q8686'] ['Q1492', 'P190', 'Q8717']
ASK WHERE { resource:Q1492 property:P190 resource:Q8717 . resource:Q1492 property:P190 resource:Q8686 }
Yes
action is_in
entity Barcelona
action intersection
action find_reverse
entity Shanghai
relation sister city
action find_reverse
entity Seville
relation sister city
['Barcelona', 'sister city', 'Shanghai'] ['Barcelona', 'sister city', 'Seville']
ASK WHERE { resource:Barcelona property:sister_city resource:Seville . resource:Barcelona property:sister_city resource:Shanghai }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1492
P47
Q1048835
USER
Which political territories share border with Barcelona ?
action filter_type
action find
entity Q1492
relation P47
type Q1048835
SELECT DISTINCT ?a WHERE { resource:Q1492 property:P47 ?a . ?a rdf:type ontology:Q1048835 }
Barcelona
action filter_type
action find
entity Barcelona
relation shares border with
type political territorial entity
SELECT DISTINCT ?a WHERE { resource:Barcelona property:shares_border_with ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q15473 Q13927 Q15639
SYSTEM
Santa Coloma de Gramenet, Montcada i Reixac, Sant Feliu de Llobregat
Q15639 Q15470 Q15471 Q15621 Q15619 Q13927 Q13936 Q13922 Q15641 Q15473
action filter_type
action find
entity Q1492
relation P47
type Q1048835
[ANSWERS] share border with Barcelona
SELECT DISTINCT ?a WHERE { resource:Q1492 property:P47 ?a . ?a rdf:type ontology:Q1048835 }
Sant Feliu de Llobregat L'Hospitalet de Llobregat Sant Adrià de Besòs Esplugues de Llobregat El Prat de Llobregat Montcada i Reixac Sant Cugat del Vallès Cerdanyola del Vallès Sant Just Desvern Santa Coloma de Gramenet
Santa Coloma de Gramenet, Montcada i Reixac and Sant Feliu de Llobregat share border with Barcelona
Santa Coloma de Gramenet Montcada i Reixac Sant Feliu de Llobregat
action filter_type
action find
entity Barcelona
relation shares border with
type political territorial entity
SELECT DISTINCT ?a WHERE { resource:Barcelona property:shares_border_with ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q778
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic relationships with around the same number of political territories as The Bahamas ?
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q778
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { FILTER ( ?r = ?d ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Q778 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } . { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?r ) WHERE { ?x property:P530 ?h . ?h rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?x } }
The Bahamas
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity The Bahamas
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { FILTER ( ?r = ?d ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:The_Bahamas property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } . { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?r ) WHERE { ?x property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?x } }
[]
political territorial entity political territorial entity
SYSTEM
10
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q778
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { FILTER ( ?r = ?d ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Q778 property:P530 ?v . ?v rdf:type ontology:Q1048835 } } . { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?r ) WHERE { ?x property:P530 ?h . ?h rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q1048835 } GROUP BY ?x } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
10
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity The Bahamas
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?q ) WHERE { FILTER ( ?r = ?d ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:The_Bahamas property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity } } . { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?r ) WHERE { ?x property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:political_territorial_entity } GROUP BY ?x } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q766
P530
Q1048835 Q1048835
USER
And what about Jamaica?
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { resource:Q766 property:P530 ?h . ?h rdf:type ontology:Q1048835 } } . FILTER ( ?x = ?p ) . { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?x ) WHERE { ?o property:P530 ?v . ?o rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q1048835 } GROUP BY ?o } }
Jamaica
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { resource:Jamaica property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } } . FILTER ( ?x = ?p ) . { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?x ) WHERE { ?o property:diplomatic_relation ?v . ?o rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?o } }
[]
political territorial entity political territorial entity
SYSTEM
10
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { resource:Q766 property:P530 ?h . ?h rdf:type ontology:Q1048835 } } . FILTER ( ?x = ?p ) . { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?x ) WHERE { ?o property:P530 ?v . ?o rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q1048835 } GROUP BY ?o } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
10
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { resource:Jamaica property:diplomatic_relation ?h . ?h rdf:type ontology:political_territorial_entity } } . FILTER ( ?x = ?p ) . { SELECT DISTINCT ?o ( COUNT ( ?v ) AS ?x ) WHERE { ?o property:diplomatic_relation ?v . ?o rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?o } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q62
P112
Q502895
USER
Which people founded San Francisco ?
(Q62,P112,c(Q502895))
action filter_type
action find
entity Q62
relation P112
type Q502895
['Q62', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q62 property:P112 ?x }
San Francisco
action filter_type
action find
entity San Francisco
relation founder
type common name
['San Francisco', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:San_Francisco property:founder ?x }
[]
common name
Q2636220 Q2356932
SYSTEM
Francisco Palóu, José Joaquín Moraga
Q2636220 Q2356932
(Q62,P112,c(Q502895))
action filter_type
action find
entity Q62
relation P112
type Q502895
[ANSWERS] founded San Francisco
['Q62', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q62 property:P112 ?x }
Francisco Palóu José Joaquín Moraga
Francisco Palóu and José Joaquín Moraga founded San Francisco
Francisco Palóu José Joaquín Moraga
action filter_type
action find
entity San Francisco
relation founder
type common name
['San Francisco', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:San_Francisco property:founder ?x }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2416673
Q502895
USER
And how about GB Group?
(Q2416673,P112,c(Q502895))
action filter_type
action find
entity Q2416673
relation P112
type Q502895
['Q2416673', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q2416673 property:P112 ?l . ?l rdf:type ontology:Q502895 }
GB Group
action filter_type
action find
entity GB Group
relation founder
type common name
['GB Group', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:GB_Group property:founder ?l . ?l rdf:type ontology:common_name }
[]
common name
Q16217531
SYSTEM
François Vaxelaire
Q16217531
(Q2416673,P112,c(Q502895))
action filter_type
action find
entity Q2416673
relation P112
type Q502895
[ANSWER]
['Q2416673', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q2416673 property:P112 ?l . ?l rdf:type ontology:Q502895 }
François Vaxelaire
François Vaxelaire
action filter_type
action find
entity GB Group
relation founder
type common name
['GB Group', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:GB_Group property:founder ?l . ?l rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1492
P159
Q167270 Q464980
USER
How many trademarks or exhibitions have the principal seat at Barcelona ?
(c(Q167270),P159,Q1492) (c(Q464980),P159,Q1492)
action count
action union
action filter_type
action find_reverse
entity Q1492
relation P159
type Q167270
action filter_type
action find_reverse
entity Q1492
relation P159
type Q464980
[{'concept': 'Q167270'}, 'P159', 'Q1492'] [{'concept': 'Q464980'}, 'P159', 'Q1492']
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { { ?e property:P159 resource:Q1492 . ?e rdf:type ontology:Q167270 } UNION { ?e property:P159 resource:Q1492 . ?e rdf:type ontology:Q464980 } }
Barcelona
action count
action union
action filter_type
action find_reverse
entity Barcelona
relation headquarters location
type trademark
action filter_type
action find_reverse
entity Barcelona
relation headquarters location
type exhibition
[{'concept': 'trademark'}, 'headquarters location', 'Barcelona'] [{'concept': 'exhibition'}, 'headquarters location', 'Barcelona']
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { { ?e property:headquarters_location resource:Barcelona . ?e rdf:type ontology:trademark } UNION { ?e property:headquarters_location resource:Barcelona . ?e rdf:type ontology:exhibition } }
[]
trademark exhibition
SYSTEM
2
Q83750 Q3266952
(c(Q167270),P159,Q1492) (c(Q464980),P159,Q1492)
action count
action union
action filter_type
action find_reverse
entity Q1492
relation P159
type Q167270
action filter_type
action find_reverse
entity Q1492
relation P159
type Q464980
[ANSWER]
[{'concept': 'Q167270'}, 'P159', 'Q1492'] [{'concept': 'Q464980'}, 'P159', 'Q1492']
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { { ?e property:P159 resource:Q1492 . ?e rdf:type ontology:Q167270 } UNION { ?e property:P159 resource:Q1492 . ?e rdf:type ontology:Q464980 } }
Desigual Fira de Barcelona
2
action count
action union
action filter_type
action find_reverse
entity Barcelona
relation headquarters location
type trademark
action filter_type
action find_reverse
entity Barcelona
relation headquarters location
type exhibition
[{'concept': 'trademark'}, 'headquarters location', 'Barcelona'] [{'concept': 'exhibition'}, 'headquarters location', 'Barcelona']
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { { ?e property:headquarters_location resource:Barcelona . ?e rdf:type ontology:trademark } UNION { ?e property:headquarters_location resource:Barcelona . ?e rdf:type ontology:exhibition } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q15963899 Q1492
P19 P190
Q486972
USER
Which human settlements are sister towns of Barcelona or are the birthplace of Aritra Dutta Banik ?
OR((Q1492,P190,c(Q486972)), (Q15963899,P19,c(Q486972)))
action filter_type
action union
action find
entity Q1492
relation P190
action find
entity Q15963899
relation P19
type Q486972
{'OR': [['Q1492', 'P190', {'concept': 'Q486972'}], ['Q15963899', 'P19', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q486972 . { { resource:Q15963899 property:P19 ?t } UNION { resource:Q1492 property:P190 ?t } } }
Aritra Dutta Banik Barcelona
action filter_type
action union
action find
entity Barcelona
relation sister city
action find
entity Aritra Dutta Banik
relation place of birth
type human settlement
{'OR': [['Barcelona', 'sister city', {'concept': 'human settlement'}], ['Aritra Dutta Banik', 'place of birth', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:human_settlement . { { resource:Aritra_Dutta_Banik property:place_of_birth ?t } UNION { resource:Barcelona property:sister_city ?t } } }
[]
human settlement
Q7553252 Q1792
SYSTEM
Sodepur, Gdańsk
Q7553252 Q1792
OR((Q1492,P190,c(Q486972)), (Q15963899,P19,c(Q486972)))
action filter_type
action union
action find
entity Q1492
relation P190
action find
entity Q15963899
relation P19
type Q486972
[ANSWERS] are sister towns of Barcelona or are the birthplace of Aritra Dutta Banik
{'OR': [['Q1492', 'P190', {'concept': 'Q486972'}], ['Q15963899', 'P19', {'concept': 'Q486972'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q486972 . { { resource:Q15963899 property:P19 ?t } UNION { resource:Q1492 property:P190 ?t } } }
Sodepur Gdańsk
Sodepur and Gdańsk are sister towns of Barcelona or are the birthplace of Aritra Dutta Banik
Sodepur Gdańsk
action filter_type
action union
action find
entity Barcelona
relation sister city
action find
entity Aritra Dutta Banik
relation place of birth
type human settlement
{'OR': [['Barcelona', 'sister city', {'concept': 'human settlement'}], ['Aritra Dutta Banik', 'place of birth', {'concept': 'human settlement'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:human_settlement . { { resource:Aritra_Dutta_Banik property:place_of_birth ?t } UNION { resource:Barcelona property:sister_city ?t } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6426618 Q62
P19 P190
Q515
USER
Which cities are twin cities of San Francisco or were Koki Kazama born ?
OR((Q62,P190,c(Q515)), (Q6426618,P19,c(Q515)))
action filter_type
action union
action find
entity Q62
relation P190
action find
entity Q6426618
relation P19
type Q515
{'OR': [['Q62', 'P190', {'concept': 'Q515'}], ['Q6426618', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q515 . { { resource:Q62 property:P190 ?t } UNION { resource:Q6426618 property:P19 ?t } } }
Koki Kazama San Francisco
action filter_type
action union
action find
entity San Francisco
relation sister city
action find
entity Koki Kazama
relation place of birth
type city
{'OR': [['San Francisco', 'sister city', {'concept': 'city'}], ['Koki Kazama', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:city . { { resource:San_Francisco property:sister_city ?t } UNION { resource:Koki_Kazama property:place_of_birth ?t } } }
[]
city
Q3624 Q686775 Q8684 Q1533 Q1355 Q19660 Q1461 Q1854
SYSTEM
Addis Ababa, Fuchū, Seoul, Caracas, Bangalore, Bucharest, Manila, Ho Chi Minh City
Q3624 Q686775 Q8684 Q1533 Q1355 Q19660 Q1461 Q1854
OR((Q62,P190,c(Q515)), (Q6426618,P19,c(Q515)))
action filter_type
action union
action find
entity Q62
relation P190
action find
entity Q6426618
relation P19
type Q515
[ANSWERS] are twin cities of San Francisco or were Koki Kazama born
{'OR': [['Q62', 'P190', {'concept': 'Q515'}], ['Q6426618', 'P19', {'concept': 'Q515'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q515 . { { resource:Q62 property:P190 ?t } UNION { resource:Q6426618 property:P19 ?t } } }
Addis Ababa Fuchū Seoul Caracas Bangalore Bucharest Manila Ho Chi Minh City
Addis Ababa, Fuchū, Seoul, Caracas, Bangalore, Bucharest, Manila and Ho Chi Minh City are twin cities of San Francisco or were Koki Kazama born
Addis Ababa Fuchū Seoul Caracas Bangalore Bucharest Manila Ho Chi Minh City
action filter_type
action union
action find
entity San Francisco
relation sister city
action find
entity Koki Kazama
relation place of birth
type city
{'OR': [['San Francisco', 'sister city', {'concept': 'city'}], ['Koki Kazama', 'place of birth', {'concept': 'city'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:city . { { resource:San_Francisco property:sister_city ?t } UNION { resource:Koki_Kazama property:place_of_birth ?t } } }
[]