Simple Question (Direct)
Simple Question
Q817035
P21
Q290
USER
Which sex does Benedikte Naubert possess ?
(Q817035,P21,c(Q290))
action filter_type
action find
entity Q817035
relation P21
type Q290
['Q817035', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q817035 property:P21 ?o . ?o rdf:type ontology:Q290 }
Benedikte Naubert
action filter_type
action find
entity Benedikte Naubert
relation gender
type sex
['Benedikte Naubert', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Benedikte_Naubert property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q817035,P21,c(Q290))
action filter_type
action find
entity Q817035
relation P21
type Q290
Benedikte Naubert possesses a [ANSWER]
['Q817035', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q817035 property:P21 ?o . ?o rdf:type ontology:Q290 }
female
Benedikte Naubert possesses a female
female
action filter_type
action find
entity Benedikte Naubert
relation gender
type sex
['Benedikte Naubert', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Benedikte_Naubert property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q817035
P735
Q82799
USER
What is the firstname of Benedikte Naubert ?
(Q817035,P735,c(Q82799))
action filter_type
action find
entity Q817035
relation P735
type Q82799
['Q817035', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q817035 property:P735 ?w . ?w rdf:type ontology:Q82799 }
Benedikte Naubert
action filter_type
action find
entity Benedikte Naubert
relation given name
type name
['Benedikte Naubert', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Benedikte_Naubert property:given_name ?w . ?w rdf:type ontology:name }
[]
name
Q18449535
SYSTEM
Benedikte
Q18449535
(Q817035,P735,c(Q82799))
action filter_type
action find
entity Q817035
relation P735
type Q82799
The firstname of [ANSWER] Naubert is of [ANSWER]
['Q817035', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q817035 property:P735 ?w . ?w rdf:type ontology:Q82799 }
Benedikte
The firstname of Benedikte Naubert is of Benedikte
Benedikte
action filter_type
action find
entity Benedikte Naubert
relation given name
type name
['Benedikte Naubert', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Benedikte_Naubert property:given_name ?w . ?w rdf:type ontology:name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17388612
Q82799
USER
And what about Marin Nikolov?
(Q17388612,P735,c(Q82799))
action filter_type
action find
entity Q17388612
relation P735
type Q82799
['Q17388612', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q17388612 property:P735 ?r . ?r rdf:type ontology:Q82799 }
Marin Nikolov
action filter_type
action find
entity Marin Nikolov
relation given name
type name
['Marin Nikolov', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Marin_Nikolov property:given_name ?r . ?r rdf:type ontology:name }
[]
name
Q18402116
SYSTEM
Marin
Q18402116
(Q17388612,P735,c(Q82799))
action filter_type
action find
entity Q17388612
relation P735
type Q82799
[ANSWER]
['Q17388612', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q17388612 property:P735 ?r . ?r rdf:type ontology:Q82799 }
Marin
Marin
action filter_type
action find
entity Marin Nikolov
relation given name
type name
['Marin Nikolov', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Marin_Nikolov property:given_name ?r . ?r rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q24733933 Q817035
P27
Q1048835
USER
Which political territories do Benedikte Naubert or Joshua Gayral belong to ?
OR((Q817035,P27,c(Q1048835)), (Q24733933,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q817035
relation P27
action find
entity Q24733933
relation P27
type Q1048835
{'OR': [['Q817035', 'P27', {'concept': 'Q1048835'}], ['Q24733933', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q817035 property:P27 ?o } UNION { resource:Q24733933 property:P27 ?o } } . ?o rdf:type ontology:Q1048835 }
Joshua Gayral Benedikte Naubert
action filter_type
action union
action find
entity Benedikte Naubert
relation country of citizenship
action find
entity Joshua Gayral
relation country of citizenship
type political territorial entity
{'OR': [['Benedikte Naubert', 'country of citizenship', {'concept': 'political territorial entity'}], ['Joshua Gayral', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Benedikte_Naubert property:country_of_citizenship ?o } UNION { resource:Joshua_Gayral property:country_of_citizenship ?o } } . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q781 Q183
SYSTEM
Antigua and Barbuda, Germany
Q781 Q183
OR((Q817035,P27,c(Q1048835)), (Q24733933,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q817035
relation P27
action find
entity Q24733933
relation P27
type Q1048835
Benedikte Naubert or Joshua Gayral belong to the [ANSWERS]
{'OR': [['Q817035', 'P27', {'concept': 'Q1048835'}], ['Q24733933', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q817035 property:P27 ?o } UNION { resource:Q24733933 property:P27 ?o } } . ?o rdf:type ontology:Q1048835 }
Antigua and Barbuda Germany
Benedikte Naubert or Joshua Gayral belong to the Antigua and Barbuda and Germany
Antigua and Barbuda Germany
action filter_type
action union
action find
entity Benedikte Naubert
relation country of citizenship
action find
entity Joshua Gayral
relation country of citizenship
type political territorial entity
{'OR': [['Benedikte Naubert', 'country of citizenship', {'concept': 'political territorial entity'}], ['Joshua Gayral', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Benedikte_Naubert property:country_of_citizenship ?o } UNION { resource:Joshua_Gayral property:country_of_citizenship ?o } } . ?o rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q215
P530
Q1048835 Q15617994
USER
How many administrative territories have diplomatic relations with less number of political territories than Slovenia ?
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q215
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?r ) WHERE { ?w rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 . ?w property:P530 ?i } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { resource:Q215 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } . FILTER ( ?r < ?n ) }
Slovenia
action count
action less
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 Slovenia
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?r ) WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity . ?w property:diplomatic_relation ?i } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { resource:Slovenia property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity } } . FILTER ( ?r < ?n ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
77
Q702 Q805 Q262 Q265 Q37 Q712 Q717 Q837 Q399 Q398 Q657 Q792 Q790 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q236 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q858 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q1048835))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q215
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?r ) WHERE { ?w rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q1048835 . ?w property:P530 ?i } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { resource:Q215 property:P530 ?y . ?y rdf:type ontology:Q1048835 } } . FILTER ( ?r < ?n ) }
Federated States of Micronesia Yemen Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Armenia Bahrain Chad El Salvador Haiti South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Montenegro Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Oman Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Syria Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
77
action count
action less
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 Slovenia
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?i ) AS ?r ) WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:political_territorial_entity . ?w property:diplomatic_relation ?i } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?n ) WHERE { resource:Slovenia property:diplomatic_relation ?y . ?y rdf:type ontology:political_territorial_entity } } . FILTER ( ?r < ?n ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q215
P36
Q56061
USER
What is the capital of that administrative territory ?
action filter_type
action find
entity Q215
relation P36
type Q56061
SELECT DISTINCT ?a WHERE { resource:Q215 property:P36 ?a . ?a rdf:type ontology:Q56061 }
Slovenia
action filter_type
action find
entity Slovenia
relation capital
type administrative territorial entity
SELECT DISTINCT ?a WHERE { resource:Slovenia property:capital ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q437
SYSTEM
Ljubljana
Q437
action filter_type
action find
entity Q215
relation P36
type Q56061
The capital of that administrative territory is of [ANSWER]
SELECT DISTINCT ?a WHERE { resource:Q215 property:P36 ?a . ?a rdf:type ontology:Q56061 }
Ljubljana
The capital of that administrative territory is of Ljubljana
Ljubljana
action filter_type
action find
entity Slovenia
relation capital
type administrative territorial entity
SELECT DISTINCT ?a WHERE { resource:Slovenia property:capital ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q437 Q12790531
P20
Q502895
USER
Does Gustav Strniša have that administrative territory as the location of death ?
(Q12790531,P20,Q437)
action is_in
entity Q437
action find
entity Q12790531
relation P20
['Q12790531', 'P20', 'Q437']
ASK WHERE { resource:Q12790531 property:P20 resource:Q437 }
Ljubljana Gustav Strniša
action is_in
entity Ljubljana
action find
entity Gustav Strniša
relation place of death
['Gustav Strniša', 'place of death', 'Ljubljana']
ASK WHERE { resource:Gustav_Strniša property:place_of_death resource:Ljubljana }
[]
common name
SYSTEM
YES
(Q12790531,P20,Q437)
action is_in
entity Q437
action find
entity Q12790531
relation P20
[ANSWER]
['Q12790531', 'P20', 'Q437']
ASK WHERE { resource:Q12790531 property:P20 resource:Q437 }
Yes
action is_in
entity Ljubljana
action find
entity Gustav Strniša
relation place of death
['Gustav Strniša', 'place of death', 'Ljubljana']
ASK WHERE { resource:Gustav_Strniša property:place_of_death resource:Ljubljana }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q24027297
P532
Q56061 Q2235308
USER
How many ship types are the registry port of more number of administrative territories than Martha Jane ?
(c(Q2235308),P532,c(Q56061))
action count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027297
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { ?c rdf:type ontology:Q2235308 . resource:Q24027297 property:P532 ?c } } . FILTER ( ?q > ?f ) . { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?q ) WHERE { ?w property:P532 ?m . ?w rdf:type ontology:Q2235308 . ?m rdf:type ontology:Q56061 } GROUP BY ?w } }
Martha Jane
action count
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Martha Jane
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { ?c rdf:type ontology:ship_type . resource:Martha_Jane property:port_of_registry ?c } } . FILTER ( ?q > ?f ) . { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?q ) WHERE { ?w property:port_of_registry ?m . ?w rdf:type ontology:ship_type . ?m rdf:type ontology:administrative_territorial_entity } GROUP BY ?w } }
[]
administrative territorial entity ship type
SYSTEM
70
Q2992316 Q2301456 Q983141 Q133606 Q26988086 Q168474 Q300311 Q20489530 Q5338632 Q7499755 Q2124429 Q1293488 Q1017179 Q7120838 Q7393546 Q25173 Q14493958 Q18128240 Q664284 Q26988094 Q21196329 Q10659251 Q477173 Q130373 Q19608222 Q11707059 Q1026780 Q22342351 Q15662618 Q33209 Q1514518 Q2596850 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q468026 Q1439419 Q23579589 Q4686475 Q26987769 Q11891639 Q321007 Q6720006 Q741803 Q338340 Q7120888 Q215692 Q917188 Q18213370 Q1129910 Q2714360 Q16852551 Q1514126 Q18711004 Q1339472 Q3558075 Q192381 Q493616 Q35462
(c(Q2235308),P532,c(Q56061))
action count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027297
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { ?c rdf:type ontology:Q2235308 . resource:Q24027297 property:P532 ?c } } . FILTER ( ?q > ?f ) . { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?q ) WHERE { ?w property:P532 ?m . ?w rdf:type ontology:Q2235308 . ?m rdf:type ontology:Q56061 } GROUP BY ?w } }
HSC Condor Rapide MS Viking XPRS MY Sam Simon MS Star Meteora MV Arctic Sunrise A MS Harmony of the Seas Edith Mærsk Shoalway RMS Samaria MV Esperanza SS Burutu PS Empress Queen SS Empire Airman RMS Titanic Mærsk Mc-Kinney Møller MS Quantum of the Seas Pioneering Spirit Emma Victory SS Argentina S/S Drottningholm Emma Mærsk Admiral Makarov HSC Condor Liberation MS Arrow SS California Modern Express Djurgården 8 Mary Celeste Sapphire Princess MS Azura Mein Schiff 4 MT Mastera CMA CGM Marco Polo VOS Sympathy RMS St Helena Eclipse MS Norman Atlantic MV Ascension HSC Highspeed 5 MS Express Samina msy Wind Song Varnek (ship, 1974-2010) MV Baltic Ace Empire Sandy SS Maxim Gorkiy Vitus Bering MV Christinaki Adventure British Explorer SS Coccolita RMS Olympic MV Royal Daffodil RMS Mauretania MV Boudicca SS Prince of Wales HMHS Britannic MS Brilliance of the Seas Anthem of the Seas SS Potsdam MS Empress MS Epsilon MS Marco Polo MV Hoegh Osaka RMS Empress of Ireland Vieux Crabe MS Oasis of the Seas Royal Clipper RMS Aquitania
70
action count
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Martha Jane
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { ?c rdf:type ontology:ship_type . resource:Martha_Jane property:port_of_registry ?c } } . FILTER ( ?q > ?f ) . { SELECT DISTINCT ?w ( COUNT ( ?m ) AS ?q ) WHERE { ?w property:port_of_registry ?m . ?w rdf:type ontology:ship_type . ?m rdf:type ontology:administrative_territorial_entity } GROUP BY ?w } }
[]