Simple Question (Direct)
Simple Question
Q1399505
P27
Q7275
USER
Which state is János Uhlárik an inhabitant of ?
(Q1399505,P27,c(Q7275))
action filter_type
action find
entity Q1399505
relation P27
type Q7275
['Q1399505', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { resource:Q1399505 property:P27 ?r . ?r rdf:type ontology:Q7275 }
János Uhlárik
action filter_type
action find
entity János Uhlárik
relation country of citizenship
type state
['János Uhlárik', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { resource:János_Uhlárik property:country_of_citizenship ?r . ?r rdf:type ontology:state }
[]
state
Q171150
SYSTEM
Kingdom of Hungary
Q171150
(Q1399505,P27,c(Q7275))
action filter_type
action find
entity Q1399505
relation P27
type Q7275
The [ANSWER] is János Uhlárik an inhabitant of
['Q1399505', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { resource:Q1399505 property:P27 ?r . ?r rdf:type ontology:Q7275 }
Kingdom of Hungary
The Kingdom of Hungary is János Uhlárik an inhabitant of
Kingdom of Hungary
action filter_type
action find
entity János Uhlárik
relation country of citizenship
type state
['János Uhlárik', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { resource:János_Uhlárik property:country_of_citizenship ?r . ?r rdf:type ontology:state }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1399505
P20
Q56061
USER
Which administrative territory is the place of death of János Uhlárik ?
(Q1399505,P20,c(Q56061))
action filter_type
action find
entity Q1399505
relation P20
type Q56061
['Q1399505', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q1399505 property:P20 ?h }
János Uhlárik
action filter_type
action find
entity János Uhlárik
relation place of death
type administrative territorial entity
['János Uhlárik', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:János_Uhlárik property:place_of_death ?h }
[]
administrative territorial entity
Q26175
SYSTEM
Trnava
Q26175
(Q1399505,P20,c(Q56061))
action filter_type
action find
entity Q1399505
relation P20
type Q56061
[ANSWER] is the place of death of János Uhlárik
['Q1399505', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . resource:Q1399505 property:P20 ?h }
Trnava
Trnava is the place of death of János Uhlárik
Trnava
action filter_type
action find
entity János Uhlárik
relation place of death
type administrative territorial entity
['János Uhlárik', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . resource:János_Uhlárik property:place_of_death ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q26175
P1376
Q13220204
USER
Which administrative country subdivision has that administrative territory has its center of administration ?
(Q26175,P1376,c(Q13220204))
action filter_type
action find
entity Q26175
relation P1376
type Q13220204
['Q26175', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?b WHERE { resource:Q26175 property:P1376 ?b . ?b rdf:type ontology:Q13220204 }
Trnava
action filter_type
action find
entity Trnava
relation capital of
type second-level administrative country subdivision
['Trnava', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?b WHERE { resource:Trnava property:capital_of ?b . ?b rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q775484
SYSTEM
Trnava District
Q775484
(Q26175,P1376,c(Q13220204))
action filter_type
action find
entity Q26175
relation P1376
type Q13220204
The [ANSWER] has that administrative territory has its center of administration
['Q26175', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ?b WHERE { resource:Q26175 property:P1376 ?b . ?b rdf:type ontology:Q13220204 }
Trnava District
The Trnava District has that administrative territory has its center of administration
Trnava District
action filter_type
action find
entity Trnava
relation capital of
type second-level administrative country subdivision
['Trnava', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?b WHERE { resource:Trnava property:capital_of ?b . ?b rdf:type ontology:second-level_administrative_country_subdivision }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q956954
P206
Q1267889 Q15324 Q56061
USER
How many administrative territories are located in the neighbourhood of more number of waterways or bodies of water than Kaspi ?
(c(Q56061),P206,c(Q1267889)|c(Q15324))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q56061
type Q1267889
action find_tuple_counts
relation P206
type Q56061
type Q15324
action count
action filter_multi_types
action find
entity Q956954
relation P206
type Q1267889
type Q15324
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Q956954 property:P206 ?b . { VALUES ( ?g ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } . ?b rdf:type ?g } } } . FILTER ( ?n > ?p ) . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?n ) WHERE { ?z rdf:type ?f . VALUES ( ?f ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } } GROUP BY ?h } }
Kaspi
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Kaspi
relation located next to body of water
type waterway
type body of water
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Kaspi property:located_next_to_body_of_water ?b . { VALUES ( ?g ) { ( ontology:waterway ) ( ontology:body_of_water ) } . ?b rdf:type ?g } } } . FILTER ( ?n > ?p ) . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?n ) WHERE { ?z rdf:type ?f . VALUES ( ?f ) { ( ontology:waterway ) ( ontology:body_of_water ) } } GROUP BY ?h } }
[]
waterway body of water administrative territorial entity
SYSTEM
145
Q12273 Q3818 Q770885 Q4083209 Q501661 Q501744 Q1939468 Q548441 Q331556 Q2943426 Q17151 Q15982011 Q1636296 Q105342 Q1757 Q1754 Q47048 Q985587 Q501090 Q1113813 Q34820 Q991661 Q11901685 Q2060910 Q2921491 Q15981916 Q1335 Q28721 Q9911 Q6465685 Q41295 Q2861 Q37133 Q207998 Q3792 Q52437 Q2598092 Q2983392 Q463937 Q3630 Q334 Q12994 Q282461 Q35178 Q4119405 Q1563 Q991274 Q3299785 Q9536 Q849441 Q15068816 Q10707890 Q3947670 Q2229853 Q969531 Q851034 Q3595479 Q3398922 Q614919 Q36281 Q1000107 Q1442470 Q21060 Q2021057 Q831527 Q200036 Q517053 Q60 Q39178 Q2684898 Q9310 Q1052027 Q1874 Q837211 Q239496 Q959 Q3932309 Q2745332 Q213707 Q1770 Q41699 Q425786 Q938379 Q18419 Q227064 Q2893117 Q7314172 Q840867 Q133123 Q986387 Q3825 Q865021 Q2238911 Q1330853 Q5379235 Q25230 Q10690 Q5926907 Q16953999 Q724394 Q4347874 Q36526 Q2727978 Q2666506 Q1419813 Q62 Q3882 Q3889 Q1616324 Q1160017 Q2928585 Q79716 Q930204 Q10313 Q990130 Q368275 Q79848 Q2413248 Q34692 Q913649 Q585 Q220 Q2729387 Q176749 Q100 Q11873187 Q36262 Q569080 Q18386455 Q3932 Q1025353 Q1572113 Q683125 Q2978763 Q36600 Q36168 Q743521 Q1807728 Q11901258 Q446232 Q41547 Q1552720 Q505601 Q991400 Q1758944
(c(Q56061),P206,c(Q1267889)|c(Q15324))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q56061
type Q1267889
action find_tuple_counts
relation P206
type Q56061
type Q15324
action count
action filter_multi_types
action find
entity Q956954
relation P206
type Q1267889
type Q15324
[ANSWER]
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Q956954 property:P206 ?b . { VALUES ( ?g ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } . ?b rdf:type ?g } } } . FILTER ( ?n > ?p ) . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?n ) WHERE { ?z rdf:type ?f . VALUES ( ?f ) { ( ontology:Q1267889 ) ( ontology:Q15324 ) } } GROUP BY ?h } }
Gijón Malabo Bergen aan Zee Seymour Arm Schleswig Alert Paravur Portugalete Bosaso Cayo Santa María Thessaloniki El Teso Hulhumalé Bolshoy Kamen Helsinki Stockholm Oulu Lee-on-the-Solent Castro Urdiales Come By Chance, Newfoundland and Labrador Santo Domingo Callantsoog Virkkula Fuvahmulah Katwijk aan Zee El Sargento Montevideo Beeston Regis Den Helder La Ventana Basseterre Rostock Mariupol Fethiye Lomé Murano Shorne Colliers Saint Thomas Jakarta Singapore Bruges IJmuiden Kuwait City Nabih Saleh Havana Kalamos Halat Nuaim Bad Doberan Saint John Norris Arm Olhava San Mauro Mare Velsen-Noord Monster San Leandro Andrott Y Felinheli Atokos Roseau Kijkduin Santoña Ouddorp Hindersön Djurgården Volos De Koog New York City Port of Spain Ter Heijde Dili Cayo Largo del Sur Odessa Scheveningen Sheringham Vladivostok Nieuw-Haamstede Villa Las Estrellas Grímsey Tallinn Castries 's-Gravenzande Samarai Brooklyn Zoutelande Beit Ummar Reposaari Rudnaya Pristan Patras Cárdenas Libreville Birchington-on-Sea Kumta Vilsandi Ennore Guernsey Cardiff Hubbards, Nova Scotia Daloloia Group Poros Emäsalo Port Moresby Karwar Panaeati Island Roatán San Francisco Manama Maputo Egmond aan Zee Perim Burnt Islands, Newfoundland and Labrador Whittier Wells-next-the-Sea Donostia/San Sebastián Hook of Holland Spetses Southampton Cayo Romano Kingston Wijk aan Zee Oslo Rome Huisduinen Villingili Boston Kuivaniemi St. John's Koipsi Canoe Island São Tomé Cadzand-Bad Útila Ustronie Morskie Clearwater Beach The Hague Bridgetown Scarborough Samhah Vihiluoto Petten St. George's Guanaja Wassenaar Puerto Barrios Rottumeroog
145
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type waterway
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type body of water
action count
action filter_multi_types
action find
entity Kaspi
relation located next to body of water
type waterway
type body of water
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { resource:Kaspi property:located_next_to_body_of_water ?b . { VALUES ( ?g ) { ( ontology:waterway ) ( ontology:body_of_water ) } . ?b rdf:type ?g } } } . FILTER ( ?n > ?p ) . { SELECT DISTINCT ?h ( COUNT ( ?z ) AS ?n ) WHERE { ?z rdf:type ?f . VALUES ( ?f ) { ( ontology:waterway ) ( ontology:body_of_water ) } } GROUP BY ?h } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q3487959 Q1399505
P106
Q12737077
USER
Which occupations are the professions of János Uhlárik and Janez Evangelist Krek ?
AND((Q1399505,P106,c(Q12737077)), (Q3487959,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q1399505
relation P106
action find
entity Q3487959
relation P106
type Q12737077
{'AND': [['Q1399505', 'P106', {'concept': 'Q12737077'}], ['Q3487959', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?f WHERE { resource:Q1399505 property:P106 ?f . resource:Q3487959 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Janez Evangelist Krek János Uhlárik
action filter_type
action intersection
action find
entity János Uhlárik
relation occupation
action find
entity Janez Evangelist Krek
relation occupation
type occupation
{'AND': [['János Uhlárik', 'occupation', {'concept': 'occupation'}], ['Janez Evangelist Krek', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?f WHERE { resource:János_Uhlárik property:occupation ?f . resource:Janez_Evangelist_Krek property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q250867
SYSTEM
Catholic priest
Q250867
AND((Q1399505,P106,c(Q12737077)), (Q3487959,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q1399505
relation P106
action find
entity Q3487959
relation P106
type Q12737077
The professions of János Uhlárik and Janez Evangelist Krek are Roman [ANSWER]
{'AND': [['Q1399505', 'P106', {'concept': 'Q12737077'}], ['Q3487959', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?f WHERE { resource:Q1399505 property:P106 ?f . resource:Q3487959 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Catholic priest
The professions of János Uhlárik and Janez Evangelist Krek are Roman Catholic priest
Catholic priest
action filter_type
action intersection
action find
entity János Uhlárik
relation occupation
action find
entity Janez Evangelist Krek
relation occupation
type occupation
{'AND': [['János Uhlárik', 'occupation', {'concept': 'occupation'}], ['Janez Evangelist Krek', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?f WHERE { resource:János_Uhlárik property:occupation ?f . resource:Janez_Evangelist_Krek property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q250867
P793
Q502895
USER
Which person is that occupation a significant event of ?
(c(Q502895),P793,Q250867)
action filter_type
action find_reverse
entity Q250867
relation P793
type Q502895
[{'concept': 'Q502895'}, 'P793', 'Q250867']
SELECT DISTINCT ?i WHERE { ?i property:P793 resource:Q250867 . ?i rdf:type ontology:Q502895 }
Catholic priest
action filter_type
action find_reverse
entity Catholic priest
relation significant event
type common name
[{'concept': 'common name'}, 'significant event', 'Catholic priest']
SELECT DISTINCT ?i WHERE { ?i property:significant_event resource:Catholic_priest . ?i rdf:type ontology:common_name }
[]
common name
Q1309250
SYSTEM
Everard de Jong
Q1309250
(c(Q502895),P793,Q250867)
action filter_type
action find_reverse
entity Q250867
relation P793
type Q502895
[ANSWER] is that occupation a significant event of
[{'concept': 'Q502895'}, 'P793', 'Q250867']
SELECT DISTINCT ?i WHERE { ?i property:P793 resource:Q250867 . ?i rdf:type ontology:Q502895 }
Everard de Jong
Everard de Jong is that occupation a significant event of
Everard de Jong
action filter_type
action find_reverse
entity Catholic priest
relation significant event
type common name
[{'concept': 'common name'}, 'significant event', 'Catholic priest']
SELECT DISTINCT ?i WHERE { ?i property:significant_event resource:Catholic_priest . ?i rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q26175
P190
Q56061
USER
Which administrative territories are twin city of Trnava ?
(c(Q56061),P190,Q26175)
action filter_type
action find
entity Q26175
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q26175']
SELECT DISTINCT ?c WHERE { resource:Q26175 property:P190 ?c . ?c rdf:type ontology:Q56061 }
Trnava
action filter_type
action find
entity Trnava
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Trnava']
SELECT DISTINCT ?c WHERE { resource:Trnava property:sister_city ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q42308 Q581478 Q5266
SYSTEM
Kharkiv, Břeclav, Novo Mesto
Q42308 Q5266 Q581478 Q104560
(c(Q56061),P190,Q26175)
action filter_type
action find
entity Q26175
relation P190
type Q56061
[ANSWERS] are twin city of Trnava
[{'concept': 'Q56061'}, 'P190', 'Q26175']
SELECT DISTINCT ?c WHERE { resource:Q26175 property:P190 ?c . ?c rdf:type ontology:Q56061 }
Kharkiv Novo Mesto Břeclav Balakovo
Kharkiv, Břeclav and Novo Mesto are twin city of Trnava
Kharkiv Břeclav Novo Mesto
action filter_type
action find
entity Trnava
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Trnava']
SELECT DISTINCT ?c WHERE { resource:Trnava property:sister_city ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q42308
P194
Q1752346
USER
Which assembly represents that administrative territory ?
(Q42308,P194,c(Q1752346))
action filter_type
action find
entity Q42308
relation P194
type Q1752346
['Q42308', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?e WHERE { resource:Q42308 property:P194 ?e . ?e rdf:type ontology:Q1752346 }
Kharkiv
action filter_type
action find
entity Kharkiv
relation legislative body
type assembly
['Kharkiv', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?e WHERE { resource:Kharkiv property:legislative_body ?e . ?e rdf:type ontology:assembly }
[]
assembly
Clarification for simple ques.
Q581478
SYSTEM
Did you mean Břeclav ?
Q42308 Q581478 Q5266
(Q42308,P194,c(Q1752346)) (Q581478,P194,c(Q1752346)) (Q5266,P194,c(Q1752346))
[ANSWER]
['Q42308', 'P194', {'concept': 'Q1752346'}] ['Q581478', 'P194', {'concept': 'Q1752346'}] ['Q5266', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?e WHERE { resource:Q42308 property:P194 ?e . ?e rdf:type ontology:Q1752346 }
Kharkiv Břeclav Novo Mesto
Did you mean Břeclav ?
Břeclav
['Kharkiv', 'legislative body', {'concept': 'assembly'}] ['Břeclav', 'legislative body', {'concept': 'assembly'}] ['Novo Mesto', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?e WHERE { resource:Kharkiv property:legislative_body ?e . ?e rdf:type ontology:assembly }
[]
Simple Question (Coreferenced)
USER
No, I meant Kharkiv. Could you tell me the answer for that?
(Q42308,P194,c(Q1752346))
Q42308
['Q42308', 'P194', {'concept': 'Q1752346'}]
['Kharkiv', 'legislative body', {'concept': 'assembly'}]
[]
Q4496302
SYSTEM
Kharkiv City Municipality
Q4496302
(Q42308,P194,c(Q1752346))
action filter_type
action find
entity Q42308
relation P194
type Q1752346
[ANSWER] represents that administrative territory
['Q42308', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?e WHERE { resource:Q42308 property:P194 ?e . ?e rdf:type ontology:Q1752346 }
Kharkiv City Municipality
Kharkiv City Municipality represents that administrative territory
Kharkiv City Municipality
action filter_type
action find
entity Kharkiv
relation legislative body
type assembly
['Kharkiv', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?e WHERE { resource:Kharkiv property:legislative_body ?e . ?e rdf:type ontology:assembly }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4496302
P194
Q56061
USER
Which administrative territory has that assembly as its representative body ?
(c(Q56061),P194,Q4496302)
action filter_type
action find_reverse
entity Q4496302
relation P194
type Q56061
[{'concept': 'Q56061'}, 'P194', 'Q4496302']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . ?b property:P194 resource:Q4496302 }
Kharkiv City Municipality
action filter_type
action find_reverse
entity Kharkiv City Municipality
relation legislative body
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'legislative body', 'Kharkiv City Municipality']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . ?b property:legislative_body resource:Kharkiv_City_Municipality }
[]
administrative territorial entity
Q42308
SYSTEM
Kharkiv
Q42308
(c(Q56061),P194,Q4496302)
action filter_type
action find_reverse
entity Q4496302
relation P194
type Q56061
[ANSWER] has that assembly as its representative body
[{'concept': 'Q56061'}, 'P194', 'Q4496302']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . ?b property:P194 resource:Q4496302 }
Kharkiv
Kharkiv has that assembly as its representative body
Kharkiv
action filter_type
action find_reverse
entity Kharkiv City Municipality
relation legislative body
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'legislative body', 'Kharkiv City Municipality']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . ?b property:legislative_body resource:Kharkiv_City_Municipality }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
Which ship types have their base port as atleast 3 administrative territories ?
(c(Q2235308),P532,c(Q56061))
action atleast
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 3
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?b ) AS ?e ) WHERE { ?f property:P532 ?b . ?f rdf:type ontology:Q2235308 . ?b rdf:type ontology:Q56061 } GROUP BY ?f } . FILTER ( ?e >= 3 ) }
action atleast
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 3
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?b ) AS ?e ) WHERE { ?f property:port_of_registry ?b . ?f rdf:type ontology:ship_type . ?b rdf:type ontology:administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?e >= 3 ) }
[]
administrative territorial entity ship type
Q11707059
SYSTEM
MS Arrow
Q11707059
(c(Q2235308),P532,c(Q56061))
action atleast
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 3
[ANSWER] have their base port as atleast 3 administrative territories
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?b ) AS ?e ) WHERE { ?f property:P532 ?b . ?f rdf:type ontology:Q2235308 . ?b rdf:type ontology:Q56061 } GROUP BY ?f } . FILTER ( ?e >= 3 ) }
MS Arrow
MS Arrow have their base port as atleast 3 administrative territories
MS Arrow
action atleast
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 3
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?b ) AS ?e ) WHERE { ?f property:port_of_registry ?b . ?f rdf:type ontology:ship_type . ?b rdf:type ontology:administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?e >= 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1094022
P19
Q502895
USER
Which person has place of birth as Mozhginsky District ?
(c(Q502895),P19,Q1094022)
action filter_type
action find_reverse
entity Q1094022
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q1094022']
SELECT DISTINCT ?r WHERE { ?r property:P19 resource:Q1094022 . ?r rdf:type ontology:Q502895 }
Mozhginsky District
action filter_type
action find_reverse
entity Mozhginsky District
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Mozhginsky District']
SELECT DISTINCT ?r WHERE { ?r property:place_of_birth resource:Mozhginsky_District . ?r rdf:type ontology:common_name }
[]
common name
Q15993435
SYSTEM
Ivan Kuznetsov
Q15993435
(c(Q502895),P19,Q1094022)
action filter_type
action find_reverse
entity Q1094022
relation P19
type Q502895
[ANSWER] has place of birth as Mozhginsky District
[{'concept': 'Q502895'}, 'P19', 'Q1094022']
SELECT DISTINCT ?r WHERE { ?r property:P19 resource:Q1094022 . ?r rdf:type ontology:Q502895 }
Ivan Kuznetsov
Ivan Kuznetsov has place of birth as Mozhginsky District
Ivan Kuznetsov
action filter_type
action find_reverse
entity Mozhginsky District
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Mozhginsky District']
SELECT DISTINCT ?r WHERE { ?r property:place_of_birth resource:Mozhginsky_District . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15993435
P734
Q82799
USER
Which name is associated with that person ?
(Q15993435,P734,c(Q82799))
action filter_type
action find
entity Q15993435
relation P734
type Q82799
['Q15993435', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?b WHERE { resource:Q15993435 property:P734 ?b . ?b rdf:type ontology:Q82799 }
Ivan Kuznetsov
action filter_type
action find
entity Ivan Kuznetsov
relation family name
type name
['Ivan Kuznetsov', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?b WHERE { resource:Ivan_Kuznetsov property:family_name ?b . ?b rdf:type ontology:name }
[]
name
Q4245091
SYSTEM
Kuznetsov
Q4245091
(Q15993435,P734,c(Q82799))
action filter_type
action find
entity Q15993435
relation P734
type Q82799
[ANSWER] is associated with that person
['Q15993435', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?b WHERE { resource:Q15993435 property:P734 ?b . ?b rdf:type ontology:Q82799 }
Kuznetsov
Kuznetsov is associated with that person
Kuznetsov
action filter_type
action find
entity Ivan Kuznetsov
relation family name
type name
['Ivan Kuznetsov', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?b WHERE { resource:Ivan_Kuznetsov property:family_name ?b . ?b rdf:type ontology:name }
[]