Simple Question (Direct)
Simple Question
Q12259521
P937
Q1048835
USER
Which political territory is the work location of Ilaski Serrano ?
(Q12259521,P937,c(Q1048835))
action filter_type
action find
entity Q12259521
relation P937
type Q1048835
['Q12259521', 'P937', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q12259521 property:P937 ?h . ?h rdf:type ontology:Q1048835 }
Ilaski Serrano
action filter_type
action find
entity Ilaski Serrano
relation work location
type political territorial entity
['Ilaski Serrano', 'work location', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Ilaski_Serrano property:work_location ?h . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q668016
SYSTEM
Iurreta
Q668016
(Q12259521,P937,c(Q1048835))
action filter_type
action find
entity Q12259521
relation P937
type Q1048835
[ANSWER] is the work location of Ilaski Serrano
['Q12259521', 'P937', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q12259521 property:P937 ?h . ?h rdf:type ontology:Q1048835 }
Iurreta
Iurreta is the work location of Ilaski Serrano
Iurreta
action filter_type
action find
entity Ilaski Serrano
relation work location
type political territorial entity
['Ilaski Serrano', 'work location', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Ilaski_Serrano property:work_location ?h . ?h rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12259521
P21
Q290
USER
Which sex does Ilaski Serrano have ?
(Q12259521,P21,c(Q290))
action filter_type
action find
entity Q12259521
relation P21
type Q290
['Q12259521', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q12259521 property:P21 ?f . ?f rdf:type ontology:Q290 }
Ilaski Serrano
action filter_type
action find
entity Ilaski Serrano
relation gender
type sex
['Ilaski Serrano', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Ilaski_Serrano property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q12259521,P21,c(Q290))
action filter_type
action find
entity Q12259521
relation P21
type Q290
Ilaski Serrano has a [ANSWER]
['Q12259521', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q12259521 property:P21 ?f . ?f rdf:type ontology:Q290 }
female
Ilaski Serrano has a female
female
action filter_type
action find
entity Ilaski Serrano
relation gender
type sex
['Ilaski Serrano', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Ilaski_Serrano property:gender ?f . ?f rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12259521
P19
Q1048835
USER
Where was Ilaski Serrano born ?
(Q12259521,P19,c(Q1048835))
action filter_type
action find
entity Q12259521
relation P19
type Q1048835
['Q12259521', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q12259521 property:P19 ?k . ?k rdf:type ontology:Q1048835 }
Ilaski Serrano
action filter_type
action find
entity Ilaski Serrano
relation place of birth
type political territorial entity
['Ilaski Serrano', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Ilaski_Serrano property:place_of_birth ?k . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q695444
SYSTEM
Bermeo
Q695444
(Q12259521,P19,c(Q1048835))
action filter_type
action find
entity Q12259521
relation P19
type Q1048835
Ilaski Serrano was born in [ANSWER]
['Q12259521', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q12259521 property:P19 ?k . ?k rdf:type ontology:Q1048835 }
Bermeo
Ilaski Serrano was born in Bermeo
Bermeo
action filter_type
action find
entity Ilaski Serrano
relation place of birth
type political territorial entity
['Ilaski Serrano', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Ilaski_Serrano property:place_of_birth ?k . ?k rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q14044417
Q1048835
USER
And how about Neus Lloveras i Massana?
(Q14044417,P19,c(Q1048835))
action filter_type
action find
entity Q14044417
relation P19
type Q1048835
['Q14044417', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1048835 . resource:Q14044417 property:P19 ?k }
Neus Lloveras i Massana
action filter_type
action find
entity Neus Lloveras i Massana
relation place of birth
type political territorial entity
['Neus Lloveras i Massana', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_territorial_entity . resource:Neus_Lloveras_i_Massana property:place_of_birth ?k }
[]
political territorial entity
Q15553
SYSTEM
Vilanova i la Geltrú
Q15553
(Q14044417,P19,c(Q1048835))
action filter_type
action find
entity Q14044417
relation P19
type Q1048835
I Massana [ANSWER]
['Q14044417', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1048835 . resource:Q14044417 property:P19 ?k }
Vilanova i la Geltrú
I Massana Vilanova i la Geltrú
Vilanova i la Geltrú
action filter_type
action find
entity Neus Lloveras i Massana
relation place of birth
type political territorial entity
['Neus Lloveras i Massana', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_territorial_entity . resource:Neus_Lloveras_i_Massana property:place_of_birth ?k }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q15553 Q15558
P47
Q1048835
USER
Does Cubelles have a shared border with that one ?
(Q15553,P47,Q15558)
action is_in
entity Q15558
action find
entity Q15553
relation P47
['Q15553', 'P47', 'Q15558']
ASK WHERE { resource:Q15553 property:P47 resource:Q15558 }
Vilanova i la Geltrú Cubelles
action is_in
entity Cubelles
action find
entity Vilanova i la Geltrú
relation shares border with
['Vilanova i la Geltrú', 'shares border with', 'Cubelles']
ASK WHERE { resource:Vilanova_i_la_Geltrú property:shares_border_with resource:Cubelles }
[]
political territorial entity
SYSTEM
YES
(Q15553,P47,Q15558)
action is_in
entity Q15558
action find
entity Q15553
relation P47
[ANSWER]
['Q15553', 'P47', 'Q15558']
ASK WHERE { resource:Q15553 property:P47 resource:Q15558 }
Yes
action is_in
entity Cubelles
action find
entity Vilanova i la Geltrú
relation shares border with
['Vilanova i la Geltrú', 'shares border with', 'Cubelles']
ASK WHERE { resource:Vilanova_i_la_Geltrú property:shares_border_with resource:Cubelles }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q695444 Q1024035 Q29
P17
Q15617994
USER
Is Bermeo present in Stackyard Green and Spain ?
(Q695444,P17,Q1024035) (Q695444,P17,Q29)
action is_in
entity Q695444
action intersection
action find_reverse
entity Q1024035
relation P17
action find_reverse
entity Q29
relation P17
['Q695444', 'P17', 'Q1024035'] ['Q695444', 'P17', 'Q29']
ASK WHERE { resource:Q695444 property:P17 resource:Q1024035 . resource:Q695444 property:P17 resource:Q29 }
Bermeo Stackyard Green Spain
action is_in
entity Bermeo
action intersection
action find_reverse
entity Stackyard Green
relation country
action find_reverse
entity Spain
relation country
['Bermeo', 'country', 'Stackyard Green'] ['Bermeo', 'country', 'Spain']
ASK WHERE { resource:Bermeo property:country resource:Stackyard_Green . resource:Bermeo property:country resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q695444,P17,Q1024035) (Q695444,P17,Q29)
action is_in
entity Q695444
action intersection
action find_reverse
entity Q1024035
relation P17
action find_reverse
entity Q29
relation P17
[ANSWER]
['Q695444', 'P17', 'Q1024035'] ['Q695444', 'P17', 'Q29']
ASK WHERE { resource:Q695444 property:P17 resource:Q1024035 . resource:Q695444 property:P17 resource:Q29 }
NO and YES respectively
action is_in
entity Bermeo
action intersection
action find_reverse
entity Stackyard Green
relation country
action find_reverse
entity Spain
relation country
['Bermeo', 'country', 'Stackyard Green'] ['Bermeo', 'country', 'Spain']
ASK WHERE { resource:Bermeo property:country resource:Stackyard_Green . resource:Bermeo property:country resource:Spain }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q695444
P19
Q502895
USER
How many people have place of birth as Bermeo ?
(c(Q502895),P19,Q695444)
action count
action filter_type
action find_reverse
entity Q695444
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q695444']
SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { ?p property:P19 resource:Q695444 . ?p rdf:type ontology:Q502895 }
Bermeo
action count
action filter_type
action find_reverse
entity Bermeo
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Bermeo']
SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { ?p property:place_of_birth resource:Bermeo . ?p rdf:type ontology:common_name }
[]
common name
SYSTEM
25
Q12255286 Q290539 Q2756686 Q5942435 Q2398773 Q4775748 Q3321681 Q12259481 Q4892454 Q6141803 Q12252934 Q12252868 Q6069142 Q16517754 Q12259521 Q11680196 Q12261077 Q12258485 Q863773 Q1771513 Q12253445 Q12267263 Q3753723 Q12260800 Q2480783
(c(Q502895),P19,Q695444)
action count
action filter_type
action find_reverse
entity Q695444
relation P19
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P19', 'Q695444']
SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { ?p property:P19 resource:Q695444 . ?p rdf:type ontology:Q502895 }
Bitor Gaubeka Izaskun Bilbao Barandica Javier Tarantino José Mari Uzelai Endika Bordas Anton Erkoreka Josu Iñaki Erkoreka Igor Muniategi Gonzalo Nárdiz Bengoechea Teodoro de Anasagasti Ainhoa Unanue Agurne Anasagasti Pedro Ispizua Izortz Zabala Ilaski Serrano Benito Barrueta Juan Ugarte Velsua Gidor Bilbao Bingen Fernández Nestor Basterretxea Analupe Fernandez Seber Ormaza Francisco Basterrechea Zaldívar Josu Penades Antonio Karmona
25
action count
action filter_type
action find_reverse
entity Bermeo
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Bermeo']
SELECT DISTINCT ( COUNT ( ?p ) AS ?u ) WHERE { ?p property:place_of_birth resource:Bermeo . ?p rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q16
P530
Q1048835 Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with less number of political territories and administrative territories than Canada ?
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action count
action less
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q16
relation P530
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) ?e WHERE { { ?t property:P530 ?e . ?e rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } UNION { ?t property:P530 ?e . ?e rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { ?g property:P530 resource:Q16 . { { ?g rdf:type ontology:Q1048835 } UNION { ?g rdf:type ontology:Q15617994 } } } } . FILTER ( ?b < ?z ) }
Canada
action count
action less
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Canada
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) ?e WHERE { { ?t property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } UNION { ?t property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { ?g property:diplomatic_relation resource:Canada . { { ?g rdf:type ontology:political_territorial_entity } UNION { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?b < ?z ) }
[]
political territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
10
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action count
action less
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q16
relation P530
type Q1048835
type Q15617994
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) ?e WHERE { { ?t property:P530 ?e . ?e rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q1048835 } UNION { ?t property:P530 ?e . ?e rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { ?g property:P530 resource:Q16 . { { ?g rdf:type ontology:Q1048835 } UNION { ?g rdf:type ontology:Q15617994 } } } } . FILTER ( ?b < ?z ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
10
action count
action less
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Canada
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) ?e WHERE { { ?t property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:political_territorial_entity } UNION { ?t property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { ?g property:diplomatic_relation resource:Canada . { { ?g rdf:type ontology:political_territorial_entity } UNION { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?b < ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q408
P530
Q1048835 Q1048835 Q15617994
USER
And also tell me about Australia?
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action count
action less
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q408
relation P530
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?f ) AS ?d ) WHERE { ?f rdf:type ?s . VALUES ( ?s ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?r } . FILTER ( ?d < ?u ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:P530 resource:Q408 . { ?i rdf:type ?g . VALUES ( ?g ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } } } }
Australia
action count
action less
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Australia
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?f ) AS ?d ) WHERE { ?f rdf:type ?s . VALUES ( ?s ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?r } . FILTER ( ?d < ?u ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:diplomatic_relation resource:Australia . { ?i rdf:type ?g . VALUES ( ?g ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } }
[]
political territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835)|c(Q15617994),P530,c(Q1048835))
action count
action less
action union
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q408
relation P530
type Q1048835
type Q15617994
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?f ) AS ?d ) WHERE { ?f rdf:type ?s . VALUES ( ?s ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?r } . FILTER ( ?d < ?u ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:P530 resource:Q408 . { ?i rdf:type ?g . VALUES ( ?g ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action less
action union
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Australia
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?f ) AS ?d ) WHERE { ?f rdf:type ?s . VALUES ( ?s ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?r } . FILTER ( ?d < ?u ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:diplomatic_relation resource:Australia . { ?i rdf:type ?g . VALUES ( ?g ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15553
P1376
Q937876
USER
Which comarca of Catalonia has Vilanova i la Geltrú has its first city ?
(Q15553,P1376,c(Q937876))
action filter_type
action find
entity Q15553
relation P1376
type Q937876
['Q15553', 'P1376', {'concept': 'Q937876'}]
SELECT DISTINCT ?f WHERE { resource:Q15553 property:P1376 ?f . ?f rdf:type ontology:Q937876 }
Vilanova i la Geltrú
action filter_type
action find
entity Vilanova i la Geltrú
relation capital of
type comarca of Catalonia
['Vilanova i la Geltrú', 'capital of', {'concept': 'comarca of Catalonia'}]
SELECT DISTINCT ?f WHERE { resource:Vilanova_i_la_Geltrú property:capital_of ?f . ?f rdf:type ontology:comarca_of_Catalonia }
[]
comarca of Catalonia
Q15354
SYSTEM
Garraf
Q15354
(Q15553,P1376,c(Q937876))
action filter_type
action find
entity Q15553
relation P1376
type Q937876
[ANSWER] has Vilanova i la Geltrú has its first city
['Q15553', 'P1376', {'concept': 'Q937876'}]
SELECT DISTINCT ?f WHERE { resource:Q15553 property:P1376 ?f . ?f rdf:type ontology:Q937876 }
Garraf
Garraf has Vilanova i la Geltrú has its first city
Garraf
action filter_type
action find
entity Vilanova i la Geltrú
relation capital of
type comarca of Catalonia
['Vilanova i la Geltrú', 'capital of', {'concept': 'comarca of Catalonia'}]
SELECT DISTINCT ?f WHERE { resource:Vilanova_i_la_Geltrú property:capital_of ?f . ?f rdf:type ontology:comarca_of_Catalonia }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q18272
Q937876
USER
And how about Tremp?
(Q18272,P1376,c(Q937876))
action filter_type
action find
entity Q18272
relation P1376
type Q937876
['Q18272', 'P1376', {'concept': 'Q937876'}]
SELECT DISTINCT ?s WHERE { resource:Q18272 property:P1376 ?s . ?s rdf:type ontology:Q937876 }
Tremp
action filter_type
action find
entity Tremp
relation capital of
type comarca of Catalonia
['Tremp', 'capital of', {'concept': 'comarca of Catalonia'}]
SELECT DISTINCT ?s WHERE { resource:Tremp property:capital_of ?s . ?s rdf:type ontology:comarca_of_Catalonia }
[]
comarca of Catalonia
Q12723
SYSTEM
Pallars Jussà
Q12723
(Q18272,P1376,c(Q937876))
action filter_type
action find
entity Q18272
relation P1376
type Q937876
[ANSWER]
['Q18272', 'P1376', {'concept': 'Q937876'}]
SELECT DISTINCT ?s WHERE { resource:Q18272 property:P1376 ?s . ?s rdf:type ontology:Q937876 }
Pallars Jussà
Pallars Jussà
action filter_type
action find
entity Tremp
relation capital of
type comarca of Catalonia
['Tremp', 'capital of', {'concept': 'comarca of Catalonia'}]
SELECT DISTINCT ?s WHERE { resource:Tremp property:capital_of ?s . ?s rdf:type ontology:comarca_of_Catalonia }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q12723 Q567621 Q29
P17
Q15617994
USER
Is that comarca of Catalonia located in Wiebelsheim and Spain ?
(Q12723,P17,Q567621) (Q12723,P17,Q29)
action is_in
entity Q12723
action intersection
action find_reverse
entity Q567621
relation P17
action find_reverse
entity Q29
relation P17
['Q12723', 'P17', 'Q567621'] ['Q12723', 'P17', 'Q29']
ASK WHERE { resource:Q12723 property:P17 resource:Q567621 . resource:Q12723 property:P17 resource:Q29 }
Pallars Jussà Wiebelsheim Spain
action is_in
entity Pallars Jussà
action intersection
action find_reverse
entity Wiebelsheim
relation country
action find_reverse
entity Spain
relation country
['Pallars Jussà', 'country', 'Wiebelsheim'] ['Pallars Jussà', 'country', 'Spain']
ASK WHERE { resource:Pallars_Jussà property:country resource:Wiebelsheim . resource:Pallars_Jussà property:country resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q12723,P17,Q567621) (Q12723,P17,Q29)
action is_in
entity Q12723
action intersection
action find_reverse
entity Q567621
relation P17
action find_reverse
entity Q29
relation P17
[ANSWER]
['Q12723', 'P17', 'Q567621'] ['Q12723', 'P17', 'Q29']
ASK WHERE { resource:Q12723 property:P17 resource:Q567621 . resource:Q12723 property:P17 resource:Q29 }
NO and YES respectively
action is_in
entity Pallars Jussà
action intersection
action find_reverse
entity Wiebelsheim
relation country
action find_reverse
entity Spain
relation country
['Pallars Jussà', 'country', 'Wiebelsheim'] ['Pallars Jussà', 'country', 'Spain']
ASK WHERE { resource:Pallars_Jussà property:country resource:Wiebelsheim . resource:Pallars_Jussà property:country resource:Spain }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1009
P530
Q15617994 Q1048835
USER
How many administrative territories holds diplomatic relationship with around the same number of political territories as Cameroon ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1009
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?n ) WHERE { ?i property:P530 ?t . ?i rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { resource:Q1009 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?n = ?m ) }
Cameroon
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Cameroon
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?n ) WHERE { ?i property:diplomatic_relation ?t . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { resource:Cameroon property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?n = ?m ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
48
Q804 Q800 Q419 Q668 Q414 Q55 Q148 Q783 Q45 Q41 Q796 Q794 Q954 Q889 Q881 Q811 Q31 Q924 Q928 Q733 Q734 Q233 Q1041 Q27 Q1028 Q736 Q786 Q225 Q224 Q96 Q347 Q17 Q902 Q1036 Q1033 Q963 Q298 Q117 Q750 Q213 Q215 Q219 Q916 Q1009 Q774 Q810 Q29 Q869
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1009
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?n ) WHERE { ?i property:P530 ?t . ?i rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { resource:Q1009 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?n = ?m ) }
Panama Costa Rica Peru India Argentina Netherlands People's Republic of China Honduras Portugal Greece Iraq Iran Zimbabwe Afghanistan Vietnam Nicaragua Belgium Tanzania Philippines Paraguay Guyana Malta Senegal Ireland Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Liechtenstein Japan Bangladesh Uganda Nigeria Botswana Chile Ghana Bolivia Czech Republic Slovenia Bulgaria Angola Cameroon Guatemala Jordan Spain Thailand
48
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Cameroon
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?t ) AS ?n ) WHERE { ?i property:diplomatic_relation ?t . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { resource:Cameroon property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?n = ?m ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q15553
P159
Q33506 Q1002697
USER
How many museums or periodical literatures have HQ at Vilanova i la Geltrú ?
(c(Q33506),P159,Q15553) (c(Q1002697),P159,Q15553)
action count
action union
action filter_type
action find_reverse
entity Q15553
relation P159
type Q33506
action filter_type
action find_reverse
entity Q15553
relation P159
type Q1002697
[{'concept': 'Q33506'}, 'P159', 'Q15553'] [{'concept': 'Q1002697'}, 'P159', 'Q15553']
SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { ?c rdf:type ?f . VALUES ( ?f ) { ( ontology:Q33506 ) ( ontology:Q1002697 ) } }
Vilanova i la Geltrú
action count
action union
action filter_type
action find_reverse
entity Vilanova i la Geltrú
relation headquarters location
type museum
action filter_type
action find_reverse
entity Vilanova i la Geltrú
relation headquarters location
type periodical literature
[{'concept': 'museum'}, 'headquarters location', 'Vilanova i la Geltrú'] [{'concept': 'periodical literature'}, 'headquarters location', 'Vilanova i la Geltrú']
SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { ?c rdf:type ?f . VALUES ( ?f ) { ( ontology:museum ) ( ontology:periodical_literature ) } }
[]
museum periodical literature
SYSTEM
2
Q526170 Q15733154
(c(Q33506),P159,Q15553) (c(Q1002697),P159,Q15553)
action count
action union
action filter_type
action find_reverse
entity Q15553
relation P159
type Q33506
action filter_type
action find_reverse
entity Q15553
relation P159
type Q1002697
[ANSWER]
[{'concept': 'Q33506'}, 'P159', 'Q15553'] [{'concept': 'Q1002697'}, 'P159', 'Q15553']
SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { ?c rdf:type ?f . VALUES ( ?f ) { ( ontology:Q33506 ) ( ontology:Q1002697 ) } }
Biblioteca Museu Víctor Balaguer Prisma
2
action count
action union
action filter_type
action find_reverse
entity Vilanova i la Geltrú
relation headquarters location
type museum
action filter_type
action find_reverse
entity Vilanova i la Geltrú
relation headquarters location
type periodical literature
[{'concept': 'museum'}, 'headquarters location', 'Vilanova i la Geltrú'] [{'concept': 'periodical literature'}, 'headquarters location', 'Vilanova i la Geltrú']
SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { ?c rdf:type ?f . VALUES ( ?f ) { ( ontology:museum ) ( ontology:periodical_literature ) } }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q2736 Q15553
P19 P641
Q502895
USER
Which people have birthplace at Vilanova i la Geltrú and are not linked with association football ?
AND((c(Q502895),P19,Q15553), NOT((c(Q502895),P641,Q2736)))
action filter_type
action difference
action find_reverse
entity Q15553
relation P19
action find_reverse
entity Q2736
relation P641
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q15553'], {'NOT': [[{'concept': 'Q502895'}, 'P641', 'Q2736']]}]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P19 resource:Q15553 . MINUS { ?a property:P641 resource:Q2736 } }
association football Vilanova i la Geltrú
action filter_type
action difference
action find_reverse
entity Vilanova i la Geltrú
relation place of birth
action find_reverse
entity association football
relation sport
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Vilanova i la Geltrú'], {'NOT': [[{'concept': 'common name'}, 'sport', 'association football']]}]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:place_of_birth resource:Vilanova_i_la_Geltrú . MINUS { ?a property:sport resource:association_football } }
[]
common name
Q18214742 Q19301966 Q8055664 Q11912486 Q11931361 Q9088348 Q431182 Q15672076 Q19999801 Q20018431
SYSTEM
Some of them are Marc Soler, Ventureta Mestres i Gras, Isabel Ferrer i Sabrià, Carme Barceló i Ràfols, Leonora Milà Romeu, Toni Albà, Isaac Gálvez, Mercè Foradada, Felip Teixidor i Benach, Abel Murcia
Q8055664 Q16174587 Q19288881 Q11681935 Q11927783 Q16440158 Q4760157 Q19300930 Q1366326 Q18214742 Q14044417 Q11919322 Q11931361 Q11949944 Q11947686 Q431182 Q19300457 Q6098309 Q14918221 Q11928356 Q19289912 Q19999801 Q15672076 Q18574787 Q11928861 Q15614817 Q1806213 Q20004496 Q11927976 Q11935650 Q2409231 Q12949569 Q20003487 Q21693829 Q1290210 Q11912486 Q11927795 Q4891053 Q19998073 Q19291049 Q20006552 Q8962169 Q17044788 Q19290416 Q20018431 Q21935604 Q3488892 Q19999303 Q19301966 Q3051129 Q11922691 Q19288679 Q11921003 Q9088348 Q17708968 Q543814 Q11934591 Q11927256 Q11698914 Q8196946 Q19300279 Q19617083
AND((c(Q502895),P19,Q15553), NOT((c(Q502895),P641,Q2736)))
action filter_type
action difference
action find_reverse
entity Q15553
relation P19
action find_reverse
entity Q2736
relation P641
type Q502895
[ANSWERS] have birthplace at Vilanova i la Geltrú and are not linked with association football
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q15553'], {'NOT': [[{'concept': 'Q502895'}, 'P641', 'Q2736']]}]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . ?a property:P19 resource:Q15553 . MINUS { ?a property:P641 resource:Q2736 } }
Isabel Ferrer i Sabrià Pau Barbé i Huguet Claudi Mimó i Caba Francesc Gumà i Ferran Joan Llaverias i Labró Màxim Serranos Soler Andrés Boira Magí Marcé i Segarra Josep Piqué i Camps Marc Soler Neus Lloveras i Massana Enric Martí i Muntaner Leonora Milà Romeu Sixte Moral i Reixach Santiago Rodríguez Serra Isaac Gálvez Josep Manel Edo i Bellido Raimundo Barneda Joan Nin i Serra Jordi Rios Assumpta Albà i Ricart Felip Teixidor i Benach Mercè Foradada Antoni Ferrer i Pi Josep Piqué i Tetas Joan Escalas i Feliu Francesc Macià i Llussà Josep Anton de Cabanyes i Ballester Joan Ventosa i Roig Marta Llorens i Garcia Enric Duran Lúcia Mas Garcia Joan Fabré Oliver Josep Llinàs i Messeguer Eduard Toldrà Carme Barceló i Ràfols Joan Magriñà i Sanromà Alfons Figueras Bernat Valls i Fuster Gilbert Galceran i Famadas Rosario Dolcet Martí Francesc Escribano i Royo Gerard Martí Figueras i Albà Emília Miret i Soler Abel Murcia Estela García Carlos Be Ernest Casajuana Escofet Ventureta Mestres i Gras Josep Francesc Ràfols i Fontanals Francesc-Marc Álvaro Bienve Moya Esteve Orriols i Sendra Toni Albà Samantha Barendson Sergi López Magí Pers i Ramona Jaume Casanovas i Escussol Pere Tàpias Amadeu Hurtado Josep Anton Garí i Siumell Tiberi Sabater
Marc Soler, Ventureta Mestres i Gras, Isabel Ferrer i Sabrià, Carme Barceló i Ràfols, Leonora Milà Romeu, Toni Albà, Isaac Gálvez, Mercè Foradada, Felip Teixidor i Benach and Abel Murcia have birthplace at Vilanova i la Geltrú and are not linked with association football
Marc Soler Ventureta Mestres i Gras Isabel Ferrer i Sabrià Carme Barceló i Ràfols Leonora Milà Romeu Toni Albà Isaac Gálvez Mercè Foradada Felip Teixidor i Benach Abel Murcia
action filter_type
action difference
action find_reverse
entity Vilanova i la Geltrú
relation place of birth
action find_reverse
entity association football
relation sport
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Vilanova i la Geltrú'], {'NOT': [[{'concept': 'common name'}, 'sport', 'association football']]}]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . ?a property:place_of_birth resource:Vilanova_i_la_Geltrú . MINUS { ?a property:sport resource:association_football } }
[]