Simple Question (Direct)
Simple Question
Q3734991
P21
Q290
USER
Which sex does Thomas E. Morgan have ?
(Q3734991,P21,c(Q290))
action filter_type
action find
entity Q3734991
relation P21
type Q290
['Q3734991', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q290 . resource:Q3734991 property:P21 ?t }
Thomas E. Morgan
action filter_type
action find
entity Thomas E. Morgan
relation gender
type sex
['Thomas E. Morgan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:sex . resource:Thomas_E._Morgan property:gender ?t }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3734991,P21,c(Q290))
action filter_type
action find
entity Q3734991
relation P21
type Q290
Thomas E. Morgan has a [ANSWER]
['Q3734991', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q290 . resource:Q3734991 property:P21 ?t }
male
Thomas E. Morgan has a male
male
action filter_type
action find
entity Thomas E. Morgan
relation gender
type sex
['Thomas E. Morgan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:sex . resource:Thomas_E._Morgan property:gender ?t }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3734991
P102
Q7210356
USER
Which party is that person affiliated with ?
(Q6581097,P102,c(Q7210356))
action filter_type
action find
entity Q3734991
relation P102
type Q7210356
['Q6581097', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q7210356 . resource:Q3734991 property:P102 ?x }
Thomas E. Morgan
action filter_type
action find
entity Thomas E. Morgan
relation member of political party
type political organization
['male', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_organization . resource:Thomas_E._Morgan property:member_of_political_party ?x }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q6581097,P102,c(Q7210356))
action filter_type
action find
entity Q3734991
relation P102
type Q7210356
That person is affiliated with [ANSWER]
['Q6581097', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q7210356 . resource:Q3734991 property:P102 ?x }
Democratic Party
That person is affiliated with Democratic Party
Democratic Party
action filter_type
action find
entity Thomas E. Morgan
relation member of political party
type political organization
['male', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:political_organization . resource:Thomas_E._Morgan property:member_of_political_party ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3734991
P39
Q12737077
USER
Which occupation was a position held by Thomas E. Morgan ?
(Q3734991,P39,c(Q12737077))
action filter_type
action find
entity Q3734991
relation P39
type Q12737077
['Q3734991', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q3734991 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
Thomas E. Morgan
action filter_type
action find
entity Thomas E. Morgan
relation position held
type occupation
['Thomas E. Morgan', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Thomas_E._Morgan property:position_held ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q13218630
SYSTEM
United States representative
Q13218630
(Q3734991,P39,c(Q12737077))
action filter_type
action find
entity Q3734991
relation P39
type Q12737077
The [ANSWER] was a position held by Thomas E. Morgan
['Q3734991', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q3734991 property:P39 ?c . ?c rdf:type ontology:Q12737077 }
United States representative
The United States representative was a position held by Thomas E. Morgan
United States representative
action filter_type
action find
entity Thomas E. Morgan
relation position held
type occupation
['Thomas E. Morgan', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Thomas_E._Morgan property:position_held ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3132056
Q12737077
USER
And also tell me about Henri Tasso?
(Q3132056,P39,c(Q12737077))
action filter_type
action find
entity Q3132056
relation P39
type Q12737077
['Q3132056', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q3132056 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
Henri Tasso
action filter_type
action find
entity Henri Tasso
relation position held
type occupation
['Henri Tasso', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Henri_Tasso property:position_held ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q382617 Q21032547 Q3044918
SYSTEM
maire, senator of the French Third Republic, member of the French National Assembly
Q382617 Q21032547 Q3044918
(Q3132056,P39,c(Q12737077))
action filter_type
action find
entity Q3132056
relation P39
type Q12737077
[ANSWERS]
['Q3132056', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q3132056 property:P39 ?a . ?a rdf:type ontology:Q12737077 }
maire senator of the French Third Republic member of the French National Assembly
maire senator of the French Third Republic member of the French National Assembly
action filter_type
action find
entity Henri Tasso
relation position held
type occupation
['Henri Tasso', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Henri_Tasso property:position_held ?a . ?a rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1448634 Q382617
P20 P17
Q15617994
USER
Which administrative territories are maire present in or did Franz Raffl expire ?
OR((Q382617,P17,c(Q15617994)), (Q1448634,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q382617
relation P17
action find
entity Q1448634
relation P20
type Q15617994
{'OR': [['Q382617', 'P17', {'concept': 'Q15617994'}], ['Q1448634', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q1448634 property:P20 ?a } UNION { resource:Q382617 property:P17 ?a } } . ?a rdf:type ontology:Q15617994 }
Franz Raffl maire
action filter_type
action union
action find
entity maire
relation country
action find
entity Franz Raffl
relation place of death
type designation for an administrative territorial entity
{'OR': [['maire', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Franz Raffl', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Franz_Raffl property:place_of_death ?a } UNION { resource:maire property:country ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q489285
SYSTEM
France, Reichertshofen
Q142 Q489285
OR((Q382617,P17,c(Q15617994)), (Q1448634,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q382617
relation P17
action find
entity Q1448634
relation P20
type Q15617994
[ANSWERS] are maire present in or did Franz Raffl expire
{'OR': [['Q382617', 'P17', {'concept': 'Q15617994'}], ['Q1448634', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q1448634 property:P20 ?a } UNION { resource:Q382617 property:P17 ?a } } . ?a rdf:type ontology:Q15617994 }
France Reichertshofen
France and Reichertshofen are maire present in or did Franz Raffl expire
France Reichertshofen
action filter_type
action union
action find
entity maire
relation country
action find
entity Franz Raffl
relation place of death
type designation for an administrative territorial entity
{'OR': [['maire', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Franz Raffl', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Franz_Raffl property:place_of_death ?a } UNION { resource:maire property:country ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P495
Q8205328 Q783794
USER
How many artefacts and companies are that administrative territory a country of origin of ?
(c(Q8205328),P495,Q142) (c(Q783794),P495,Q142) (c(Q8205328),P495,Q142) (c(Q783794),P495,Q142) (c(Q8205328),P495,Q489285) (c(Q783794),P495,Q489285)
[{'concept': 'Q8205328'}, 'P495', 'Q142'] [{'concept': 'Q783794'}, 'P495', 'Q142'] [{'concept': 'Q8205328'}, 'P495', 'Q142'] [{'concept': 'Q783794'}, 'P495', 'Q142'] [{'concept': 'Q8205328'}, 'P495', 'Q489285'] [{'concept': 'Q783794'}, 'P495', 'Q489285']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P495 resource:Q16275867 } UNION { ?y property:P495 resource:Q16275867 } UNION { ?z property:P495 resource:Q16275867 } UNION { ?y property:P495 resource:Q16275867 } UNION { ?z property:P495 resource:Q2139276 } UNION { ?y property:P495 resource:Q2139276 } } . ?z rdf:type ontology:Q8205328 . ?y rdf:type ontology:Q102538 }
[{'concept': 'artefact'}, 'country of origin', 'France'] [{'concept': 'company'}, 'country of origin', 'France'] [{'concept': 'artefact'}, 'country of origin', 'France'] [{'concept': 'company'}, 'country of origin', 'France'] [{'concept': 'artefact'}, 'country of origin', 'Reichertshofen'] [{'concept': 'company'}, 'country of origin', 'Reichertshofen']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country_of_origin resource:France } UNION { ?y property:country_of_origin resource:France } UNION { ?z property:country_of_origin resource:France } UNION { ?y property:country_of_origin resource:France } UNION { ?z property:country_of_origin resource:Reichertshofen } UNION { ?y property:country_of_origin resource:Reichertshofen } } . ?z rdf:type ontology:artefact . ?y rdf:type ontology:company }
[]
artefact company
Quantitative|Count|Mult. entity type|Clarification
Q142
SYSTEM
Did you mean France ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P495 resource:Q16275867 } UNION { ?y property:P495 resource:Q16275867 } UNION { ?z property:P495 resource:Q16275867 } UNION { ?y property:P495 resource:Q16275867 } UNION { ?z property:P495 resource:Q2139276 } UNION { ?y property:P495 resource:Q2139276 } } . ?z rdf:type ontology:Q8205328 . ?y rdf:type ontology:Q102538 }
Did you mean France ?
France
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country_of_origin resource:France } UNION { ?y property:country_of_origin resource:France } UNION { ?z property:country_of_origin resource:France } UNION { ?y property:country_of_origin resource:France } UNION { ?z property:country_of_origin resource:Reichertshofen } UNION { ?y property:country_of_origin resource:Reichertshofen } } . ?z rdf:type ontology:artefact . ?y rdf:type ontology:company }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q8205328),P495,Q142) (c(Q783794),P495,Q142) (c(Q8205328),P495,Q142) (c(Q783794),P495,Q142) (c(Q8205328),P495,Q489285) (c(Q783794),P495,Q489285)
[{'concept': 'Q8205328'}, 'P495', 'Q142'] [{'concept': 'Q783794'}, 'P495', 'Q142'] [{'concept': 'Q8205328'}, 'P495', 'Q142'] [{'concept': 'Q783794'}, 'P495', 'Q142'] [{'concept': 'Q8205328'}, 'P495', 'Q489285'] [{'concept': 'Q783794'}, 'P495', 'Q489285']
[{'concept': 'artefact'}, 'country of origin', 'France'] [{'concept': 'company'}, 'country of origin', 'France'] [{'concept': 'artefact'}, 'country of origin', 'France'] [{'concept': 'company'}, 'country of origin', 'France'] [{'concept': 'artefact'}, 'country of origin', 'Reichertshofen'] [{'concept': 'company'}, 'country of origin', 'Reichertshofen']
[]
SYSTEM
11 artefacts and 1 companies
Q738 Q1270543 Q12699 Q12197 Q13314 Q668855 Q16937041 Q749593 Q12200 Q1022124 Q183095 Q814709
(c(Q8205328),P495,Q142) (c(Q783794),P495,Q142) (c(Q8205328),P495,Q142) (c(Q783794),P495,Q142) (c(Q8205328),P495,Q489285) (c(Q783794),P495,Q489285)
[ANSWER]
[{'concept': 'Q8205328'}, 'P495', 'Q142'] [{'concept': 'Q783794'}, 'P495', 'Q142'] [{'concept': 'Q8205328'}, 'P495', 'Q142'] [{'concept': 'Q783794'}, 'P495', 'Q142'] [{'concept': 'Q8205328'}, 'P495', 'Q489285'] [{'concept': 'Q783794'}, 'P495', 'Q489285']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P495 resource:Q16275867 } UNION { ?y property:P495 resource:Q16275867 } UNION { ?z property:P495 resource:Q16275867 } UNION { ?y property:P495 resource:Q16275867 } UNION { ?z property:P495 resource:Q2139276 } UNION { ?y property:P495 resource:Q2139276 } } . ?z rdf:type ontology:Q8205328 . ?y rdf:type ontology:Q102538 }
croque-monsieur Compagnie du Sénégal Choucroute garnie Kig ha farz parfait scrambled eggs Duck à l'orange steak tartare crêpe beef bourguignon Ratatouille beignet
11 artefacts and 1 companies
[{'concept': 'artefact'}, 'country of origin', 'France'] [{'concept': 'company'}, 'country of origin', 'France'] [{'concept': 'artefact'}, 'country of origin', 'France'] [{'concept': 'company'}, 'country of origin', 'France'] [{'concept': 'artefact'}, 'country of origin', 'Reichertshofen'] [{'concept': 'company'}, 'country of origin', 'Reichertshofen']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:country_of_origin resource:France } UNION { ?y property:country_of_origin resource:France } UNION { ?z property:country_of_origin resource:France } UNION { ?y property:country_of_origin resource:France } UNION { ?z property:country_of_origin resource:Reichertshofen } UNION { ?y property:country_of_origin resource:Reichertshofen } } . ?z rdf:type ontology:artefact . ?y rdf:type ontology:company }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q244
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with lesser number of administrative territories than Barbados ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q244
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?p ) WHERE { ?x property:P530 ?q . ?x rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q244 property:P530 ?d } } . FILTER ( ?p < ?i ) }
Barbados
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Barbados
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?p ) WHERE { ?x property:diplomatic_relation ?q . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Barbados property:diplomatic_relation ?d } } . FILTER ( ?p < ?i ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q244
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with lesser number of administrative territories than Barbados
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?p ) WHERE { ?x property:P530 ?q . ?x rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { ?d rdf:type ontology:Q15617994 . resource:Q244 property:P530 ?d } } . FILTER ( ?p < ?i ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan have diplomatic relations with lesser number of administrative territories than Barbados
Central African Republic Kingdom of the Netherlands Kazakhstan
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Barbados
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?p ) WHERE { ?x property:diplomatic_relation ?q . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?i ) WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Barbados property:diplomatic_relation ?d } } . FILTER ( ?p < ?i ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q232 Q963
P1001
Q12737077
USER
How many occupations have jurisdiction over Kazakhstan or Botswana ?
(c(Q12737077),P1001,Q232) (c(Q12737077),P1001,Q963)
action count
action union
action filter_type
action find_reverse
entity Q232
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q963
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q232'] [{'concept': 'Q12737077'}, 'P1001', 'Q963']
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { ?d property:P1001 ?j . VALUES ( ?j ) { ( resource:Q232 ) ( resource:Q963 ) } }
Kazakhstan Botswana
action count
action union
action filter_type
action find_reverse
entity Kazakhstan
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Botswana
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Kazakhstan'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Botswana']
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { ?d property:applies_to_jurisdiction ?j . VALUES ( ?j ) { ( resource:Kazakhstan ) ( resource:Botswana ) } }
[]
occupation
SYSTEM
7
Q21328574 Q19056310 Q5256775 Q859757 Q21295141 Q5251229 Q21290847
(c(Q12737077),P1001,Q232) (c(Q12737077),P1001,Q963)
action count
action union
action filter_type
action find_reverse
entity Q232
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q963
relation P1001
type Q12737077
[ANSWER]
[{'concept': 'Q12737077'}, 'P1001', 'Q232'] [{'concept': 'Q12737077'}, 'P1001', 'Q963']
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { ?d property:P1001 ?j . VALUES ( ?j ) { ( resource:Q232 ) ( resource:Q963 ) } }
Member of the Mazhilis President of Botswana President of Kazakhstan Vice-President of Botswana Member of the Senate of Kazakhstan Defence Minister of Kazakhstan Member of the National Assembly of Botswana
7
action count
action union
action filter_type
action find_reverse
entity Kazakhstan
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Botswana
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Kazakhstan'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Botswana']
SELECT DISTINCT ( COUNT ( ?d ) AS ?m ) WHERE { ?d property:applies_to_jurisdiction ?j . VALUES ( ?j ) { ( resource:Kazakhstan ) ( resource:Botswana ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q155 Q29999
P27
Q502895
USER
Which people are a citizen of Kingdom of the Netherlands and Brazil ?
AND((c(Q502895),P27,Q29999), (c(Q502895),P27,Q155))
action filter_type
action intersection
action find_reverse
entity Q29999
relation P27
action find_reverse
entity Q155
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q29999'], [{'concept': 'Q502895'}, 'P27', 'Q155']]}
SELECT DISTINCT ?s WHERE { ?s property:P27 resource:Q155 . ?s property:P27 resource:Q29999 . ?s rdf:type ontology:Q502895 }
Brazil Kingdom of the Netherlands
action filter_type
action intersection
action find_reverse
entity Kingdom of the Netherlands
relation country of citizenship
action find_reverse
entity Brazil
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Kingdom of the Netherlands'], [{'concept': 'common name'}, 'country of citizenship', 'Brazil']]}
SELECT DISTINCT ?s WHERE { ?s property:country_of_citizenship resource:Brazil . ?s property:country_of_citizenship resource:Kingdom_of_the_Netherlands . ?s rdf:type ontology:common_name }
[]
common name
Q673450 Q1370462 Q372371
SYSTEM
Douglas Franco Teixeira, Marc van Roosmalen, Floris Takens
Q673450 Q1370462 Q372371
AND((c(Q502895),P27,Q29999), (c(Q502895),P27,Q155))
action filter_type
action intersection
action find_reverse
entity Q29999
relation P27
action find_reverse
entity Q155
relation P27
type Q502895
[ANSWERS] are a citizen of Kingdom of the Netherlands and Brazil
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q29999'], [{'concept': 'Q502895'}, 'P27', 'Q155']]}
SELECT DISTINCT ?s WHERE { ?s property:P27 resource:Q155 . ?s property:P27 resource:Q29999 . ?s rdf:type ontology:Q502895 }
Douglas Franco Teixeira Marc van Roosmalen Floris Takens
Douglas Franco Teixeira, Marc van Roosmalen and Floris Takens are a citizen of Kingdom of the Netherlands and Brazil
Douglas Franco Teixeira Marc van Roosmalen Floris Takens
action filter_type
action intersection
action find_reverse
entity Kingdom of the Netherlands
relation country of citizenship
action find_reverse
entity Brazil
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Kingdom of the Netherlands'], [{'concept': 'common name'}, 'country of citizenship', 'Brazil']]}
SELECT DISTINCT ?s WHERE { ?s property:country_of_citizenship resource:Brazil . ?s property:country_of_citizenship resource:Kingdom_of_the_Netherlands . ?s rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q917
P495
Q15617994 Q2088357 Q838948
USER
How many administrative territories did around the same number of musical ensembles and works of art originate as Bhutan ?
(c(Q2088357)|c(Q838948),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q917
relation P495
type Q2088357
type Q838948
[[{'concept': 'Q2088357'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) ?r WHERE { VALUES ( ?j ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } . ?v rdf:type ?j } GROUP BY ?r } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { ?x rdf:type ?n . VALUES ( ?n ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } } . ?x property:P495 resource:Q917 } } }
Bhutan
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Bhutan
relation country of origin
type musical ensemble
type work of art
[[{'concept': 'musical ensemble'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) ?r WHERE { VALUES ( ?j ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } . ?v rdf:type ?j } GROUP BY ?r } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { ?x rdf:type ?n . VALUES ( ?n ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } } . ?x property:country_of_origin resource:Bhutan } } }
[]
designation for an administrative territorial entity musical ensemble work of art
SYSTEM
164
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2088357)|c(Q838948),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q917
relation P495
type Q2088357
type Q838948
[ANSWER]
[[{'concept': 'Q2088357'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) ?r WHERE { VALUES ( ?j ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } . ?v rdf:type ?j } GROUP BY ?r } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { ?x rdf:type ?n . VALUES ( ?n ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } } . ?x property:P495 resource:Q917 } } }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
164
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Bhutan
relation country of origin
type musical ensemble
type work of art
[[{'concept': 'musical ensemble'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) ?r WHERE { VALUES ( ?j ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } . ?v rdf:type ?j } GROUP BY ?r } . FILTER ( ?s = ?p ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?p ) WHERE { { ?x rdf:type ?n . VALUES ( ?n ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } } . ?x property:country_of_origin resource:Bhutan } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q43
P495
Q15617994 Q2088357 Q838948
USER
And how about Turkey?
(c(Q2088357)|c(Q838948),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q43
relation P495
type Q2088357
type Q838948
[[{'concept': 'Q2088357'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?f WHERE { ?a rdf:type ?h . VALUES ( ?h ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { { ?e rdf:type ontology:Q2088357 } UNION { ?e rdf:type ontology:Q838948 } } . ?e property:P495 resource:Q43 } } . FILTER ( ?x = ?s ) }
Turkey
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Turkey
relation country of origin
type musical ensemble
type work of art
[[{'concept': 'musical ensemble'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?f WHERE { ?a rdf:type ?h . VALUES ( ?h ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { { ?e rdf:type ontology:musical_ensemble } UNION { ?e rdf:type ontology:work_of_art } } . ?e property:country_of_origin resource:Turkey } } . FILTER ( ?x = ?s ) }
[]
designation for an administrative territorial entity musical ensemble work of art
SYSTEM
164
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2088357)|c(Q838948),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2088357
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q43
relation P495
type Q2088357
type Q838948
[ANSWER]
[[{'concept': 'Q2088357'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?f WHERE { ?a rdf:type ?h . VALUES ( ?h ) { ( ontology:Q2088357 ) ( ontology:Q838948 ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { { ?e rdf:type ontology:Q2088357 } UNION { ?e rdf:type ontology:Q838948 } } . ?e property:P495 resource:Q43 } } . FILTER ( ?x = ?s ) }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
164
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type musical ensemble
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity Turkey
relation country of origin
type musical ensemble
type work of art
[[{'concept': 'musical ensemble'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?f WHERE { ?a rdf:type ?h . VALUES ( ?h ) { ( ontology:musical_ensemble ) ( ontology:work_of_art ) } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { { ?e rdf:type ontology:musical_ensemble } UNION { ?e rdf:type ontology:work_of_art } } . ?e property:country_of_origin resource:Turkey } } . FILTER ( ?x = ?s ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q372371
P106
Q12737077
USER
What do Floris Takens do for a living ?
(Q372371,P106,c(Q12737077))
action filter_type
action find
entity Q372371
relation P106
type Q12737077
['Q372371', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q372371 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Floris Takens
action filter_type
action find
entity Floris Takens
relation occupation
type occupation
['Floris Takens', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Floris_Takens property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q1622272 Q170790
SYSTEM
university teacher, mathematician
Q1622272 Q170790
(Q372371,P106,c(Q12737077))
action filter_type
action find
entity Q372371
relation P106
type Q12737077
Floris Takens do for a living as [ANSWERS]
['Q372371', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q372371 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
university teacher mathematician
Floris Takens do for a living as university teacher and mathematician
university teacher mathematician
action filter_type
action find
entity Floris Takens
relation occupation
type occupation
['Floris Takens', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Floris_Takens property:occupation ?l . ?l rdf:type ontology:occupation }
[]