Simple Question (Direct)
Simple Question
Q4079344
P20
Q515
USER
Where did the expiration of Nikolay Batashev occur ?
(Q4079344,P20,c(Q515))
action filter_type
action find
entity Q4079344
relation P20
type Q515
['Q4079344', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q4079344 property:P20 ?z . ?z rdf:type ontology:Q515 }
Nikolay Batashev
action filter_type
action find
entity Nikolay Batashev
relation place of death
type city
['Nikolay Batashev', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:Nikolay_Batashev property:place_of_death ?z . ?z rdf:type ontology:city }
[]
city
Q1899
SYSTEM
Kyiv
Q1899
(Q4079344,P20,c(Q515))
action filter_type
action find
entity Q4079344
relation P20
type Q515
The expiration of Nikolay Batashev occurred in [ANSWER]
['Q4079344', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q4079344 property:P20 ?z . ?z rdf:type ontology:Q515 }
Kyiv
The expiration of Nikolay Batashev occurred in Kyiv
Kyiv
action filter_type
action find
entity Nikolay Batashev
relation place of death
type city
['Nikolay Batashev', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:Nikolay_Batashev property:place_of_death ?z . ?z rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1899
P6
Q502895
USER
Which person is the head of government of that city ?
(Q1899,P6,c(Q502895))
action filter_type
action find
entity Q1899
relation P6
type Q502895
['Q1899', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1899 property:P6 ?j . ?j rdf:type ontology:Q502895 }
Kyiv
action filter_type
action find
entity Kyiv
relation head of government
type common name
['Kyiv', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Kyiv property:head_of_government ?j . ?j rdf:type ontology:common_name }
[]
common name
Q31919
SYSTEM
Vitali Klitschko
Q31919
(Q1899,P6,c(Q502895))
action filter_type
action find
entity Q1899
relation P6
type Q502895
[ANSWER] is the head of government of that city
['Q1899', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1899 property:P6 ?j . ?j rdf:type ontology:Q502895 }
Vitali Klitschko
Vitali Klitschko is the head of government of that city
Vitali Klitschko
action filter_type
action find
entity Kyiv
relation head of government
type common name
['Kyiv', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Kyiv property:head_of_government ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1899
P291
Q234460
USER
Which text has that city as its publication location ?
(c(Q234460),P291,Q31919)
action filter_type
action find_reverse
entity Q1899
relation P291
type Q234460
[{'concept': 'Q234460'}, 'P291', 'Q31919']
SELECT DISTINCT ?j WHERE { ?j property:P291 resource:Q1899 . ?j rdf:type ontology:Q234460 }
Kyiv
action filter_type
action find_reverse
entity Kyiv
relation place of publication
type text
[{'concept': 'text'}, 'place of publication', 'Vitali Klitschko']
SELECT DISTINCT ?j WHERE { ?j property:place_of_publication resource:Kyiv . ?j rdf:type ontology:text }
[]
text
Q2381890
SYSTEM
Sermon on Law and Grace
Q2381890
(c(Q234460),P291,Q31919)
action filter_type
action find_reverse
entity Q1899
relation P291
type Q234460
[ANSWER] has that city as its publication location
[{'concept': 'Q234460'}, 'P291', 'Q31919']
SELECT DISTINCT ?j WHERE { ?j property:P291 resource:Q1899 . ?j rdf:type ontology:Q234460 }
Sermon on Law and Grace
Sermon on Law and Grace has that city as its publication location
Sermon on Law and Grace
action filter_type
action find_reverse
entity Kyiv
relation place of publication
type text
[{'concept': 'text'}, 'place of publication', 'Vitali Klitschko']
SELECT DISTINCT ?j WHERE { ?j property:place_of_publication resource:Kyiv . ?j rdf:type ontology:text }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P190
Q515 Q515 Q15617994
USER
Which cities are sister towns of approximately 7 cities or administrative territories ?
(c(Q515)|c(Q15617994),P190,c(Q515))
action approx
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q515
action find_reverse_tuple_counts
relation P190
type Q515
type Q15617994
value 7
[[{'concept': 'Q515'}, {'concept': 'Q15617994'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?l = 7 ) . { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?l ) WHERE { { ?n property:P190 ?i . ?i rdf:type ontology:Q515 . ?n rdf:type ontology:Q515 } UNION { ?i rdf:type ontology:Q515 . ?n rdf:type ontology:Q15617994 . ?n property:P190 ?i } } GROUP BY ?i } }
action approx
action union
action find_reverse_tuple_counts
relation sister city
type city
type city
action find_reverse_tuple_counts
relation sister city
type city
type designation for an administrative territorial entity
value 7
[[{'concept': 'city'}, {'concept': 'designation for an administrative territorial entity'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?l = 7 ) . { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?l ) WHERE { { ?n property:sister_city ?i . ?i rdf:type ontology:city . ?n rdf:type ontology:city } UNION { ?i rdf:type ontology:city . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n property:sister_city ?i } } GROUP BY ?i } }
[]
city city designation for an administrative territorial entity
Q1461 Q1953 Q2079
SYSTEM
Manila, Yerevan, Leipzig
Q52607 Q20934 Q2887 Q1461 Q8652 Q2079 Q166829 Q2207 Q851056 Q3616 Q613813 Q1953
(c(Q515)|c(Q15617994),P190,c(Q515))
action approx
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q515
action find_reverse_tuple_counts
relation P190
type Q515
type Q15617994
value 7
[ANSWERS] are sister towns of approximately 7 cities or administrative territories
[[{'concept': 'Q515'}, {'concept': 'Q15617994'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?l = 7 ) . { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?l ) WHERE { { ?n property:P190 ?i . ?i rdf:type ontology:Q515 . ?n rdf:type ontology:Q515 } UNION { ?i rdf:type ontology:Q515 . ?n rdf:type ontology:Q15617994 . ?n property:P190 ?i } } GROUP BY ?i } }
Mar del Plata Incheon Santiago Manila Miami Leipzig Miercurea Nirajului Naga Cristuru Secuiesc Tehran Kőszeg Yerevan
Manila, Yerevan and Leipzig are sister towns of approximately 7 cities or administrative territories
Manila Yerevan Leipzig
action approx
action union
action find_reverse_tuple_counts
relation sister city
type city
type city
action find_reverse_tuple_counts
relation sister city
type city
type designation for an administrative territorial entity
value 7
[[{'concept': 'city'}, {'concept': 'designation for an administrative territorial entity'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?i WHERE { FILTER ( ?l = 7 ) . { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?l ) WHERE { { ?n property:sister_city ?i . ?i rdf:type ontology:city . ?n rdf:type ontology:city } UNION { ?i rdf:type ontology:city . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n property:sister_city ?i } } GROUP BY ?i } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q2079 Q1295
P937
Q502895
USER
How many people have Leipzig and Dortmund as work location ?
(c(Q502895),P937,Q2079) (c(Q502895),P937,Q1295)
action count
action intersection
action filter_type
action find_reverse
entity Q2079
relation P937
type Q502895
action filter_type
action find_reverse
entity Q1295
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q2079'] [{'concept': 'Q502895'}, 'P937', 'Q1295']
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { ?n rdf:type ontology:Q502895 . ?n property:P937 resource:Q2079 . ?n property:P937 resource:Q1295 . ?n rdf:type ontology:Q502895 }
Leipzig Dortmund
action count
action intersection
action filter_type
action find_reverse
entity Leipzig
relation work location
type common name
action filter_type
action find_reverse
entity Dortmund
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Leipzig'] [{'concept': 'common name'}, 'work location', 'Dortmund']
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { ?n rdf:type ontology:common_name . ?n property:work_location resource:Leipzig . ?n property:work_location resource:Dortmund . ?n rdf:type ontology:common_name }
[]
common name
SYSTEM
3
Q15837948 Q119385 Q2476009
(c(Q502895),P937,Q2079) (c(Q502895),P937,Q1295)
action count
action intersection
action filter_type
action find_reverse
entity Q2079
relation P937
type Q502895
action filter_type
action find_reverse
entity Q1295
relation P937
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P937', 'Q2079'] [{'concept': 'Q502895'}, 'P937', 'Q1295']
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { ?n rdf:type ontology:Q502895 . ?n property:P937 resource:Q2079 . ?n property:P937 resource:Q1295 . ?n rdf:type ontology:Q502895 }
Otto Söffing Werner Radig Ulrich Huttner
3
action count
action intersection
action filter_type
action find_reverse
entity Leipzig
relation work location
type common name
action filter_type
action find_reverse
entity Dortmund
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Leipzig'] [{'concept': 'common name'}, 'work location', 'Dortmund']
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { ?n rdf:type ontology:common_name . ?n property:work_location resource:Leipzig . ?n property:work_location resource:Dortmund . ?n rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P190
Q515 Q515
USER
How many cities are partner town of atleast 11 cities ?
(c(Q515),P190,c(Q515))
action count
action atleast
action find_tuple_counts
relation P190
type Q515
type Q515
value 11
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?k ) WHERE { ?i property:P190 ?w . ?i rdf:type ontology:Q515 . ?w rdf:type ontology:Q515 } GROUP BY ?i } . FILTER ( ?k >= 11 ) }
action count
action atleast
action find_tuple_counts
relation sister city
type city
type city
value 11
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?k ) WHERE { ?i property:sister_city ?w . ?i rdf:type ontology:city . ?w rdf:type ontology:city } GROUP BY ?i } . FILTER ( ?k >= 11 ) }
[]
city city
SYSTEM
2
Q205922 Q42622
(c(Q515),P190,c(Q515))
action count
action atleast
action find_tuple_counts
relation P190
type Q515
type Q515
value 11
[ANSWER]
[{'concept': 'Q515'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?k ) WHERE { ?i property:P190 ?w . ?i rdf:type ontology:Q515 . ?w rdf:type ontology:Q515 } GROUP BY ?i } . FILTER ( ?k >= 11 ) }
Qiqihar Suzhou
2
action count
action atleast
action find_tuple_counts
relation sister city
type city
type city
value 11
[{'concept': 'city'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?q ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?w ) AS ?k ) WHERE { ?i property:sister_city ?w . ?i rdf:type ontology:city . ?w rdf:type ontology:city } GROUP BY ?i } . FILTER ( ?k >= 11 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2079
P840
Q838948 Q234460
USER
How many works of art and texts have their setting located at Leipzig ?
(c(Q838948),P840,Q2079) (c(Q234460),P840,Q2079)
action count
action union
action filter_type
action find_reverse
entity Q2079
relation P840
type Q838948
action filter_type
action find_reverse
entity Q2079
relation P840
type Q234460
[{'concept': 'Q838948'}, 'P840', 'Q2079'] [{'concept': 'Q234460'}, 'P840', 'Q2079']
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { ?n property:P840 resource:Q2079 . ?n rdf:type ontology:Q234460 } UNION { ?n property:P840 resource:Q2079 . ?n rdf:type ontology:Q838948 } }
Leipzig
action count
action union
action filter_type
action find_reverse
entity Leipzig
relation narrative location
type work of art
action filter_type
action find_reverse
entity Leipzig
relation narrative location
type text
[{'concept': 'work of art'}, 'narrative location', 'Leipzig'] [{'concept': 'text'}, 'narrative location', 'Leipzig']
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { ?n property:narrative_location resource:Leipzig . ?n rdf:type ontology:text } UNION { ?n property:narrative_location resource:Leipzig . ?n rdf:type ontology:work_of_art } }
[]
work of art text
SYSTEM
1 works of art and 1 texts
Q18642433 Q386431
(c(Q838948),P840,Q2079) (c(Q234460),P840,Q2079)
action count
action union
action filter_type
action find_reverse
entity Q2079
relation P840
type Q838948
action filter_type
action find_reverse
entity Q2079
relation P840
type Q234460
[ANSWER]
[{'concept': 'Q838948'}, 'P840', 'Q2079'] [{'concept': 'Q234460'}, 'P840', 'Q2079']
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { ?n property:P840 resource:Q2079 . ?n rdf:type ontology:Q234460 } UNION { ?n property:P840 resource:Q2079 . ?n rdf:type ontology:Q838948 } }
As We Were Dreaming Doctor Faustus
1 works of art and 1 texts
action count
action union
action filter_type
action find_reverse
entity Leipzig
relation narrative location
type work of art
action filter_type
action find_reverse
entity Leipzig
relation narrative location
type text
[{'concept': 'work of art'}, 'narrative location', 'Leipzig'] [{'concept': 'text'}, 'narrative location', 'Leipzig']
SELECT DISTINCT ( COUNT ( ?n ) AS ?s ) WHERE { { ?n property:narrative_location resource:Leipzig . ?n rdf:type ontology:text } UNION { ?n property:narrative_location resource:Leipzig . ?n rdf:type ontology:work_of_art } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1461
P17
Q15617994
USER
Which administrative territory is Manila present in ?
(Q1461,P17,c(Q15617994))
action filter_type
action find
entity Q1461
relation P17
type Q15617994
['Q1461', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q1461 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
Manila
action filter_type
action find
entity Manila
relation country
type designation for an administrative territorial entity
['Manila', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Manila property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q928
SYSTEM
Philippines
Q928
(Q1461,P17,c(Q15617994))
action filter_type
action find
entity Q1461
relation P17
type Q15617994
Manila is the [ANSWER]
['Q1461', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { resource:Q1461 property:P17 ?e . ?e rdf:type ontology:Q15617994 }
Philippines
Manila is the Philippines
Philippines
action filter_type
action find
entity Manila
relation country
type designation for an administrative territorial entity
['Manila', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Manila property:country ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1461
P47
Q515
USER
Which cities are next to the border of Manila ?
(c(Q515),P47,Q1461)
action filter_type
action find
entity Q1461
relation P47
type Q515
[{'concept': 'Q515'}, 'P47', 'Q1461']
SELECT DISTINCT ?l WHERE { resource:Q1461 property:P47 ?l . ?l rdf:type ontology:Q515 }
Manila
action filter_type
action find
entity Manila
relation shares border with
type city
[{'concept': 'city'}, 'shares border with', 'Manila']
SELECT DISTINCT ?l WHERE { resource:Manila property:shares_border_with ?l . ?l rdf:type ontology:city }
[]
city
Q1508 Q1475 Q1478
SYSTEM
Makati, Quezon City, Caloocan
Q1508 Q749283 Q9085 Q17179 Q1475 Q1478 Q17189
(c(Q515),P47,Q1461)
action filter_type
action find
entity Q1461
relation P47
type Q515
[ANSWERS] are next to the border of Manila
[{'concept': 'Q515'}, 'P47', 'Q1461']
SELECT DISTINCT ?l WHERE { resource:Q1461 property:P47 ?l . ?l rdf:type ontology:Q515 }
Makati San Juan Mandaluyong Navotas Quezon City Caloocan Pasay
Makati, Quezon City and Caloocan are next to the border of Manila
Makati Quezon City Caloocan
action filter_type
action find
entity Manila
relation shares border with
type city
[{'concept': 'city'}, 'shares border with', 'Manila']
SELECT DISTINCT ?l WHERE { resource:Manila property:shares_border_with ?l . ?l rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1461
P915
Q838948
USER
Which work of art was filmed at Manila ?
(c(Q838948),P915,Q1461)
action filter_type
action find_reverse
entity Q1461
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q1461']
SELECT DISTINCT ?t WHERE { ?t property:P915 resource:Q1461 . ?t rdf:type ontology:Q838948 }
Manila
action filter_type
action find_reverse
entity Manila
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Manila']
SELECT DISTINCT ?t WHERE { ?t property:filming_location resource:Manila . ?t rdf:type ontology:work_of_art }
[]
work of art
Q494048
SYSTEM
The Bourne Legacy
Q494048
(c(Q838948),P915,Q1461)
action filter_type
action find_reverse
entity Q1461
relation P915
type Q838948
The [ANSWER] was filmed at Manila
[{'concept': 'Q838948'}, 'P915', 'Q1461']
SELECT DISTINCT ?t WHERE { ?t property:P915 resource:Q1461 . ?t rdf:type ontology:Q838948 }
The Bourne Legacy
The The Bourne Legacy was filmed at Manila
The Bourne Legacy
action filter_type
action find_reverse
entity Manila
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Manila']
SELECT DISTINCT ?t WHERE { ?t property:filming_location resource:Manila . ?t rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1461
P504
Q2235308
USER
Which ship types have Manila as their home harbour ?
(c(Q2235308),P504,Q1461)
action filter_type
action find_reverse
entity Q1461
relation P504
type Q2235308
[{'concept': 'Q2235308'}, 'P504', 'Q1461']
SELECT DISTINCT ?q WHERE { ?q property:P504 resource:Q1461 . ?q rdf:type ontology:Q2235308 }
Manila
action filter_type
action find_reverse
entity Manila
relation home port
type ship type
[{'concept': 'ship type'}, 'home port', 'Manila']
SELECT DISTINCT ?q WHERE { ?q property:home_port resource:Manila . ?q rdf:type ontology:ship_type }
[]
ship type
Q4836436 Q4836393
SYSTEM
BRP Ramon Alcaraz, BRP Ang Pangulo
Q4836436 Q4836393
(c(Q2235308),P504,Q1461)
action filter_type
action find_reverse
entity Q1461
relation P504
type Q2235308
[ANSWERS] have Manila as their home harbour
[{'concept': 'Q2235308'}, 'P504', 'Q1461']
SELECT DISTINCT ?q WHERE { ?q property:P504 resource:Q1461 . ?q rdf:type ontology:Q2235308 }
BRP Ramon Alcaraz BRP Ang Pangulo
BRP Ramon Alcaraz and BRP Ang Pangulo have Manila as their home harbour
BRP Ramon Alcaraz BRP Ang Pangulo
action filter_type
action find_reverse
entity Manila
relation home port
type ship type
[{'concept': 'ship type'}, 'home port', 'Manila']
SELECT DISTINCT ?q WHERE { ?q property:home_port resource:Manila . ?q rdf:type ontology:ship_type }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q4836436 Q4836393
P504
Q515
USER
Which port serve as the home port of BRP Ramon Alcaraz and BRP Ang Pangulo ?
(Q4836436,P504,c(Q515)) (Q4836393,P504,c(Q515))
action union
action filter_type
action find
entity Q4836436
relation P504
type Q515
action filter_type
action find
entity Q4836393
relation P504
type Q515
['Q4836436', 'P504', {'concept': 'Q515'}] ['Q4836393', 'P504', {'concept': 'Q515'}]
SELECT DISTINCT ?n WHERE { ?a property:P504 ?n . VALUES ( ?a ) { ( resource:Q4836436 ) ( resource:Q4836393 ) } }
BRP Ramon Alcaraz BRP Ang Pangulo
action union
action filter_type
action find
entity BRP Ramon Alcaraz
relation home port
type city
action filter_type
action find
entity BRP Ang Pangulo
relation home port
type city
['BRP Ramon Alcaraz', 'home port', {'concept': 'city'}] ['BRP Ang Pangulo', 'home port', {'concept': 'city'}]
SELECT DISTINCT ?n WHERE { ?a property:home_port ?n . VALUES ( ?a ) { ( resource:BRP_Ramon_Alcaraz ) ( resource:BRP_Ang_Pangulo ) } }
[]
city
Q1461 Q1461
SYSTEM
Manila
Q1461 Q1461
(Q4836436,P504,c(Q515)) (Q4836393,P504,c(Q515))
action union
action filter_type
action find
entity Q4836436
relation P504
type Q515
action filter_type
action find
entity Q4836393
relation P504
type Q515
[ANSWER] and [ANSWER] serve as the home port of BRP Ramon Alcaraz and BRP Ang Pangulo
['Q4836436', 'P504', {'concept': 'Q515'}] ['Q4836393', 'P504', {'concept': 'Q515'}]
SELECT DISTINCT ?n WHERE { ?a property:P504 ?n . VALUES ( ?a ) { ( resource:Q4836436 ) ( resource:Q4836393 ) } }
Manila Manila
Manila and Manila serve as the home port of BRP Ramon Alcaraz and BRP Ang Pangulo
Manila Manila
action union
action filter_type
action find
entity BRP Ramon Alcaraz
relation home port
type city
action filter_type
action find
entity BRP Ang Pangulo
relation home port
type city
['BRP Ramon Alcaraz', 'home port', {'concept': 'city'}] ['BRP Ang Pangulo', 'home port', {'concept': 'city'}]
SELECT DISTINCT ?n WHERE { ?a property:home_port ?n . VALUES ( ?a ) { ( resource:BRP_Ramon_Alcaraz ) ( resource:BRP_Ang_Pangulo ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1475
P1313
Q12737077
USER
What is the occupation held by Quezon City ?
(Q1475,P1313,c(Q12737077))
action filter_type
action find
entity Q1475
relation P1313
type Q12737077
['Q1475', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q1475 property:P1313 ?k . ?k rdf:type ontology:Q12737077 }
Quezon City
action filter_type
action find
entity Quezon City
relation office held by head of government
type occupation
['Quezon City', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Quezon_City property:office_held_by_head_of_government ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q30185
SYSTEM
mayor
Q30185
(Q1475,P1313,c(Q12737077))
action filter_type
action find
entity Q1475
relation P1313
type Q12737077
The occupation held by Quezon City is the [ANSWER]
['Q1475', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q1475 property:P1313 ?k . ?k rdf:type ontology:Q12737077 }
mayor
The occupation held by Quezon City is the mayor
mayor
action filter_type
action find
entity Quezon City
relation office held by head of government
type occupation
['Quezon City', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Quezon_City property:office_held_by_head_of_government ?k . ?k rdf:type ontology:occupation }
[]