Simple Question (Direct)
Simple Question
Q970749
P6
Q502895
USER
Who is the head of the government of Santaella ?
(Q970749,P6,c(Q502895))
action filter_type
action find
entity Q970749
relation P6
type Q502895
['Q970749', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q970749 property:P6 ?z . ?z rdf:type ontology:Q502895 }
Santaella
action filter_type
action find
entity Santaella
relation head of government
type common name
['Santaella', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Santaella property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
common name
Q14086001
SYSTEM
Jose Alvarez Rivas
Q14086001
(Q970749,P6,c(Q502895))
action filter_type
action find
entity Q970749
relation P6
type Q502895
The head of the government of Santaella is Don [ANSWER]
['Q970749', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q970749 property:P6 ?z . ?z rdf:type ontology:Q502895 }
Jose Alvarez Rivas
The head of the government of Santaella is Don Jose Alvarez Rivas
Jose Alvarez Rivas
action filter_type
action find
entity Santaella
relation head of government
type common name
['Santaella', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Santaella property:head_of_government ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q970749
P1001
Q12737077
USER
Which occupation presides the jurisdiction over that political territory ?
(c(Q12737077),P1001,Q14086001)
action filter_type
action find_reverse
entity Q970749
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q14086001']
SELECT DISTINCT ?i WHERE { ?i property:P1001 resource:Q970749 . ?i rdf:type ontology:Q12737077 }
Santaella
action filter_type
action find_reverse
entity Santaella
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Jose Alvarez Rivas']
SELECT DISTINCT ?i WHERE { ?i property:applies_to_jurisdiction resource:Santaella . ?i rdf:type ontology:occupation }
[]
occupation
Q26701361
SYSTEM
mayor of Santaella
Q26701361
(c(Q12737077),P1001,Q14086001)
action filter_type
action find_reverse
entity Q970749
relation P1001
type Q12737077
The [ANSWER] presides the jurisdiction over that political territory
[{'concept': 'Q12737077'}, 'P1001', 'Q14086001']
SELECT DISTINCT ?i WHERE { ?i property:P1001 resource:Q970749 . ?i rdf:type ontology:Q12737077 }
mayor of Santaella
The mayor of Santaella presides the jurisdiction over that political territory
mayor of Santaella
action filter_type
action find_reverse
entity Santaella
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Jose Alvarez Rivas']
SELECT DISTINCT ?i WHERE { ?i property:applies_to_jurisdiction resource:Santaella . ?i rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories are that occupation located in ?
(Q26701361,P17,c(Q15617994))
action count
action filter_type
action find
entity Q26701361
relation P17
type Q15617994
['Q26701361', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { resource:Q26701361 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
action count
action filter_type
action find
entity mayor of Santaella
relation country
type designation for an administrative territorial entity
['mayor of Santaella', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { resource:mayor_of_Santaella property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q29
(Q26701361,P17,c(Q15617994))
action count
action filter_type
action find
entity Q26701361
relation P17
type Q15617994
[ANSWER]
['Q26701361', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { resource:Q26701361 property:P17 ?i . ?i rdf:type ontology:Q15617994 }
Spain
1
action count
action filter_type
action find
entity mayor of Santaella
relation country
type designation for an administrative territorial entity
['mayor of Santaella', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) WHERE { resource:mayor_of_Santaella property:country ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q26701361
P1313
Q1048835
USER
Which political territory has mayor of Santaella as position of head of government ?
(c(Q1048835),P1313,Q26701361)
action filter_type
action find_reverse
entity Q26701361
relation P1313
type Q1048835
[{'concept': 'Q1048835'}, 'P1313', 'Q26701361']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1048835 . ?x property:P1313 resource:Q26701361 }
mayor of Santaella
action filter_type
action find_reverse
entity mayor of Santaella
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Santaella']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_territorial_entity . ?x property:office_held_by_head_of_government resource:mayor_of_Santaella }
[]
political territorial entity
Q970749
SYSTEM
Santaella
Q970749
(c(Q1048835),P1313,Q26701361)
action filter_type
action find_reverse
entity Q26701361
relation P1313
type Q1048835
The [ANSWER] has mayor of [ANSWER] as position of head of government
[{'concept': 'Q1048835'}, 'P1313', 'Q26701361']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1048835 . ?x property:P1313 resource:Q26701361 }
Santaella
The Santaella has mayor of Santaella as position of head of government
Santaella
action filter_type
action find_reverse
entity mayor of Santaella
relation office held by head of government
type political territorial entity
[{'concept': 'political territorial entity'}, 'office held by head of government', 'mayor of Santaella']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_territorial_entity . ?x property:office_held_by_head_of_government resource:mayor_of_Santaella }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q970749
P47
Q1048835
USER
Which political territories do that one share a border with ?
(c(Q1048835),P47,Q970749)
action filter_type
action find_reverse
entity Q970749
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q970749']
SELECT DISTINCT ?s WHERE { ?s property:P47 resource:Q970749 . ?s rdf:type ontology:Q1048835 }
Santaella
action filter_type
action find_reverse
entity Santaella
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Santaella']
SELECT DISTINCT ?s WHERE { ?s property:shares_border_with resource:Santaella . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q966470 Q1645517 Q854444
SYSTEM
Estepa, La Rambla, Aguilar de la Frontera
Q966470 Q1443804 Q749022 Q1645517 Q854444
(c(Q1048835),P47,Q970749)
action filter_type
action find_reverse
entity Q970749
relation P47
type Q1048835
[ANSWERS] that one share a border with
[{'concept': 'Q1048835'}, 'P47', 'Q970749']
SELECT DISTINCT ?s WHERE { ?s property:P47 resource:Q970749 . ?s rdf:type ontology:Q1048835 }
Estepa Montalbán de Córdoba La Carlota, Spain La Rambla Aguilar de la Frontera
Estepa, La Rambla and Aguilar de la Frontera that one share a border with
Estepa La Rambla Aguilar de la Frontera
action filter_type
action find_reverse
entity Santaella
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Santaella']
SELECT DISTINCT ?s WHERE { ?s property:shares_border_with resource:Santaella . ?s rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4190879
P47
Q1048835
USER
Does Zelenyi Klyn share border with those ones ?
(Q4190879,P47,Q966470) (Q4190879,P47,Q1645517) (Q4190879,P47,Q854444)
action is_in
entity prev_answer
action find
entity Q4190879
relation P47
['Q4190879', 'P47', 'Q966470'] ['Q4190879', 'P47', 'Q1645517'] ['Q4190879', 'P47', 'Q854444']
ASK WHERE { resource:Q4190879 property:P47 ?w . VALUES ( ?w ) { ( resource:Q966470 ) ( resource:Q1443804 ) ( resource:Q749022 ) } }
Zelenyi Klyn
action is_in
entity prev_answer
action find
entity Zelenyi Klyn
relation shares border with
['Zelenyi Klyn', 'shares border with', 'Estepa'] ['Zelenyi Klyn', 'shares border with', 'La Rambla'] ['Zelenyi Klyn', 'shares border with', 'Aguilar de la Frontera']
ASK WHERE { resource:Zelenyi_Klyn property:shares_border_with ?w . VALUES ( ?w ) { ( resource:Estepa ) ( resource:Montalbán_de_Córdoba ) ( resource:La_Carlota,_Spain ) } }
[]
political territorial entity
SYSTEM
NO
(Q4190879,P47,Q966470) (Q4190879,P47,Q1645517) (Q4190879,P47,Q854444)
action is_in
entity prev_answer
action find
entity Q4190879
relation P47
[ANSWER]
['Q4190879', 'P47', 'Q966470'] ['Q4190879', 'P47', 'Q1645517'] ['Q4190879', 'P47', 'Q854444']
ASK WHERE { resource:Q4190879 property:P47 ?w . VALUES ( ?w ) { ( resource:Q966470 ) ( resource:Q1443804 ) ( resource:Q749022 ) } }
No
action is_in
entity prev_answer
action find
entity Zelenyi Klyn
relation shares border with
['Zelenyi Klyn', 'shares border with', 'Estepa'] ['Zelenyi Klyn', 'shares border with', 'La Rambla'] ['Zelenyi Klyn', 'shares border with', 'Aguilar de la Frontera']
ASK WHERE { resource:Zelenyi_Klyn property:shares_border_with ?w . VALUES ( ?w ) { ( resource:Estepa ) ( resource:Montalbán_de_Córdoba ) ( resource:La_Carlota,_Spain ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q26701361 Q29
P17
Q15617994
USER
Is mayor of Santaella located in Spain ?
(Q26701361,P17,Q29)
action is_in
entity Q29
action find
entity Q26701361
relation P17
['Q26701361', 'P17', 'Q29']
ASK WHERE { resource:Q26701361 property:P17 resource:Q29 }
mayor of Santaella Spain
action is_in
entity Spain
action find
entity mayor of Santaella
relation country
['mayor of Santaella', 'country', 'Spain']
ASK WHERE { resource:mayor_of_Santaella property:country resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q26701361,P17,Q29)
action is_in
entity Q29
action find
entity Q26701361
relation P17
[ANSWER]
['Q26701361', 'P17', 'Q29']
ASK WHERE { resource:Q26701361 property:P17 resource:Q29 }
Yes
action is_in
entity Spain
action find
entity mayor of Santaella
relation country
['mayor of Santaella', 'country', 'Spain']
ASK WHERE { resource:mayor_of_Santaella property:country resource:Spain }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q229
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relationships with greater number of political territories than Cyprus ?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q229
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n rdf:type ontology:Q15617994 . resource:Q229 property:P530 ?n } } . FILTER ( ?z > ?o ) . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?z ) WHERE { ?s property:P530 ?g . ?s rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 } GROUP BY ?s } }
Cyprus
action count
action greater
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 Cyprus
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 ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Cyprus property:diplomatic_relation ?n } } . FILTER ( ?z > ?o ) . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?z ) WHERE { ?s property:diplomatic_relation ?g . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?s } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
2
Q155 Q38
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q229
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n rdf:type ontology:Q15617994 . resource:Q229 property:P530 ?n } } . FILTER ( ?z > ?o ) . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?z ) WHERE { ?s property:P530 ?g . ?s rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 } GROUP BY ?s } }
Brazil Italy
2
action count
action greater
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 Cyprus
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 ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Cyprus property:diplomatic_relation ?n } } . FILTER ( ?z > ?o ) . { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?z ) WHERE { ?s property:diplomatic_relation ?g . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?s } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q33788
P530
Q15617994 Q1048835
USER
And also tell me about New Caledonia?
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q33788
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?g ) WHERE { ?a property:P530 ?v . ?v rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Q33788 property:P530 ?w . ?w rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?t ) }
New Caledonia
action count
action greater
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 New Caledonia
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 ( ?a ) AS ?s ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?g ) WHERE { ?a property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:New_Caledonia property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?t ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
82
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q1041 Q27 Q843 Q1029 Q1028 Q736 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q33788
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?g ) WHERE { ?a property:P530 ?v . ?v rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:Q33788 property:P530 ?w . ?w rdf:type ontology:Q15617994 } } . FILTER ( ?g > ?t ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Senegal Ireland Pakistan Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
82
action count
action greater
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 New Caledonia
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 ( ?a ) AS ?s ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?v ) AS ?g ) WHERE { ?a property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { resource:New_Caledonia property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g > ?t ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q966470
P1435
Q2065736
USER
Which cultural property is the heritage status of Estepa ?
(Q966470,P1435,c(Q2065736))
action filter_type
action find
entity Q966470
relation P1435
type Q2065736
['Q966470', 'P1435', {'concept': 'Q2065736'}]
SELECT DISTINCT ?m WHERE { resource:Q966470 property:P1435 ?m . ?m rdf:type ontology:Q2065736 }
Estepa
action filter_type
action find
entity Estepa
relation heritage status
type cultural property
['Estepa', 'heritage status', {'concept': 'cultural property'}]
SELECT DISTINCT ?m WHERE { resource:Estepa property:heritage_status ?m . ?m rdf:type ontology:cultural_property }
[]
cultural property
Q23712
SYSTEM
Bien de Interés Cultural
Q23712
(Q966470,P1435,c(Q2065736))
action filter_type
action find
entity Q966470
relation P1435
type Q2065736
The [ANSWER] is the heritage status of Estepa
['Q966470', 'P1435', {'concept': 'Q2065736'}]
SELECT DISTINCT ?m WHERE { resource:Q966470 property:P1435 ?m . ?m rdf:type ontology:Q2065736 }
Bien de Interés Cultural
The Bien de Interés Cultural is the heritage status of Estepa
Bien de Interés Cultural
action filter_type
action find
entity Estepa
relation heritage status
type cultural property
['Estepa', 'heritage status', {'concept': 'cultural property'}]
SELECT DISTINCT ?m WHERE { resource:Estepa property:heritage_status ?m . ?m rdf:type ontology:cultural_property }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q23712
P361
Q853614
USER
Which identifier is a part of that cultural property ?
(c(Q853614),P361,Q23712)
action filter_type
action find_reverse
entity Q23712
relation P361
type Q853614
[{'concept': 'Q853614'}, 'P361', 'Q23712']
SELECT DISTINCT ?g WHERE { ?g property:P361 resource:Q23712 . ?g rdf:type ontology:Q853614 }
Bien de Interés Cultural
action filter_type
action find_reverse
entity Bien de Interés Cultural
relation part of
type identifier
[{'concept': 'identifier'}, 'part of', 'Bien de Interés Cultural']
SELECT DISTINCT ?g WHERE { ?g property:part_of resource:Bien_de_Interés_Cultural . ?g rdf:type ontology:identifier }
[]
identifier
Q19832983
SYSTEM
code Bien de Interés Cultural
Q19832983
(c(Q853614),P361,Q23712)
action filter_type
action find_reverse
entity Q23712
relation P361
type Q853614
The [ANSWER] is a part of that cultural property
[{'concept': 'Q853614'}, 'P361', 'Q23712']
SELECT DISTINCT ?g WHERE { ?g property:P361 resource:Q23712 . ?g rdf:type ontology:Q853614 }
code Bien de Interés Cultural
The code Bien de Interés Cultural is a part of that cultural property
code Bien de Interés Cultural
action filter_type
action find_reverse
entity Bien de Interés Cultural
relation part of
type identifier
[{'concept': 'identifier'}, 'part of', 'Bien de Interés Cultural']
SELECT DISTINCT ?g WHERE { ?g property:part_of resource:Bien_de_Interés_Cultural . ?g rdf:type ontology:identifier }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q19832983 Q29
P17
Q15617994
USER
Is that identifier a part of Spain ?
(Q19832983,P17,Q29)
action is_in
entity Q29
action find
entity Q19832983
relation P17
['Q19832983', 'P17', 'Q29']
ASK WHERE { resource:Q19832983 property:P17 resource:Q29 }
code Bien de Interés Cultural Spain
action is_in
entity Spain
action find
entity code Bien de Interés Cultural
relation country
['code Bien de Interés Cultural', 'country', 'Spain']
ASK WHERE { resource:code_Bien_de_Interés_Cultural property:country resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q19832983,P17,Q29)
action is_in
entity Q29
action find
entity Q19832983
relation P17
[ANSWER]
['Q19832983', 'P17', 'Q29']
ASK WHERE { resource:Q19832983 property:P17 resource:Q29 }
Yes
action is_in
entity Spain
action find
entity code Bien de Interés Cultural
relation country
['code Bien de Interés Cultural', 'country', 'Spain']
ASK WHERE { resource:code_Bien_de_Interés_Cultural property:country resource:Spain }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P2439
Q34770 Q853614
USER
Which languages have a connection with max number of identifiers ?
(c(Q853614),P2439,Q25164)
action argmax
action find_reverse_tuple_counts
relation P2439
type Q34770
type Q853614
[{'concept': 'Q853614'}, 'P2439', 'Q25164']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?t ) { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?j ) WHERE { ?g property:P2439 ?z . ?z rdf:type ontology:Q34770 . ?g rdf:type ontology:Q853614 } GROUP BY ?z } } . { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?i ) WHERE { ?c property:P2439 ?o . ?o rdf:type ontology:Q34770 . ?c rdf:type ontology:Q853614 } GROUP BY ?o } . FILTER ( ?i = ?t ) }
action argmax
action find_reverse_tuple_counts
relation language
type language
type identifier
[{'concept': 'identifier'}, 'language', 'Nynorsk']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?t ) { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?j ) WHERE { ?g property:language ?z . ?z rdf:type ontology:language . ?g rdf:type ontology:identifier } GROUP BY ?z } } . { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?i ) WHERE { ?c property:language ?o . ?o rdf:type ontology:language . ?c rdf:type ontology:identifier } GROUP BY ?o } . FILTER ( ?i = ?t ) }
[]
language identifier
Q1860 Q1321
SYSTEM
English, Spanish
Q1860 Q1321
(c(Q853614),P2439,Q25164)
action argmax
action find_reverse_tuple_counts
relation P2439
type Q34770
type Q853614
[ANSWERS] have a connection with max number of identifiers
[{'concept': 'Q853614'}, 'P2439', 'Q25164']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?t ) { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?j ) WHERE { ?g property:P2439 ?z . ?z rdf:type ontology:Q34770 . ?g rdf:type ontology:Q853614 } GROUP BY ?z } } . { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?i ) WHERE { ?c property:P2439 ?o . ?o rdf:type ontology:Q34770 . ?c rdf:type ontology:Q853614 } GROUP BY ?o } . FILTER ( ?i = ?t ) }
English Spanish
English and Spanish have a connection with max number of identifiers
English Spanish
action argmax
action find_reverse_tuple_counts
relation language
type language
type identifier
[{'concept': 'identifier'}, 'language', 'Nynorsk']
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?j ) AS ?t ) { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?j ) WHERE { ?g property:language ?z . ?z rdf:type ontology:language . ?g rdf:type ontology:identifier } GROUP BY ?z } } . { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?i ) WHERE { ?c property:language ?o . ?o rdf:type ontology:language . ?c rdf:type ontology:identifier } GROUP BY ?o } . FILTER ( ?i = ?t ) }
[]