Simple Question (Direct)
Simple Question
Q3507344
P106
Q12737077
USER
Which occupations are the professions of Sylvie Jacob ?
(Q3507344,P106,c(Q12737077))
action filter_type
action find
entity Q3507344
relation P106
type Q12737077
['Q3507344', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q3507344 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Sylvie Jacob
action filter_type
action find
entity Sylvie Jacob
relation occupation
type occupation
['Sylvie Jacob', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Sylvie_Jacob property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q11481802 Q33999
SYSTEM
dub actor, actor
Q11481802 Q33999
(Q3507344,P106,c(Q12737077))
action filter_type
action find
entity Q3507344
relation P106
type Q12737077
The professions of Sylvie Jacob are a [ANSWERS]
['Q3507344', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q3507344 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
dub actor actor
The professions of Sylvie Jacob are a dub actor and actor
dub actor actor
action filter_type
action find
entity Sylvie Jacob
relation occupation
type occupation
['Sylvie Jacob', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Sylvie_Jacob property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3507344
P734
Q82799
USER
Who has the surname Sylvie Jacob ?
(Q3507344,P734,c(Q82799))
action filter_type
action find
entity Q3507344
relation P734
type Q82799
['Q3507344', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q3507344 property:P734 ?w . ?w rdf:type ontology:Q82799 }
Sylvie Jacob
action filter_type
action find
entity Sylvie Jacob
relation family name
type name
['Sylvie Jacob', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Sylvie_Jacob property:family_name ?w . ?w rdf:type ontology:name }
[]
name
Q1677404
SYSTEM
Jacob
Q1677404
(Q3507344,P734,c(Q82799))
action filter_type
action find
entity Q3507344
relation P734
type Q82799
[ANSWER] has the surname Sylvie [ANSWER]
['Q3507344', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q3507344 property:P734 ?w . ?w rdf:type ontology:Q82799 }
Jacob
Jacob has the surname Sylvie Jacob
Jacob
action filter_type
action find
entity Sylvie Jacob
relation family name
type name
['Sylvie Jacob', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Sylvie_Jacob property:family_name ?w . ?w rdf:type ontology:name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3036091
Q82799
USER
And how about Donald Sheldon?
(Q3036091,P734,c(Q82799))
action filter_type
action find
entity Q3036091
relation P734
type Q82799
['Q3036091', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { resource:Q3036091 property:P734 ?p . ?p rdf:type ontology:Q82799 }
Donald Sheldon
action filter_type
action find
entity Donald Sheldon
relation family name
type name
['Donald Sheldon', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { resource:Donald_Sheldon property:family_name ?p . ?p rdf:type ontology:name }
[]
name
Q3959346
SYSTEM
Sheldon
Q3959346
(Q3036091,P734,c(Q82799))
action filter_type
action find
entity Q3036091
relation P734
type Q82799
[ANSWER]
['Q3036091', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { resource:Q3036091 property:P734 ?p . ?p rdf:type ontology:Q82799 }
Sheldon
Sheldon
action filter_type
action find
entity Donald Sheldon
relation family name
type name
['Donald Sheldon', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { resource:Donald_Sheldon property:family_name ?p . ?p rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
Which languages are the languages of work for atmost 153 names ?
(c(Q82799),P407,c(Q34770))
action atmost
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 153
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?c ) WHERE { ?r property:P407 ?t . ?t rdf:type ontology:Q34770 . ?r rdf:type ontology:Q82799 } GROUP BY ?t } . FILTER ( ?c <= 153 ) }
action atmost
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 153
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?c ) WHERE { ?r property:language_of_work_or_name ?t . ?t rdf:type ontology:language . ?r rdf:type ontology:name } GROUP BY ?t } . FILTER ( ?c <= 153 ) }
[]
language name
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action atmost
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 153
[ANSWERS] are the languages of work for atmost 153 names
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?c ) WHERE { ?r property:P407 ?t . ?t rdf:type ontology:Q34770 . ?r rdf:type ontology:Q82799 } GROUP BY ?t } . FILTER ( ?c <= 153 ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Old Egyptian, Old Church Slavonic and Etruscan are the languages of work for atmost 153 names
Old Egyptian Old Church Slavonic Etruscan
action atmost
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 153
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?c ) WHERE { ?r property:language_of_work_or_name ?t . ?t rdf:type ontology:language . ?r rdf:type ontology:name } GROUP BY ?t } . FILTER ( ?c <= 153 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2187359 Q3507344
P27
Q15617994
USER
Which administrative territories are the native countriesof Sylvie Jacob or Jules Bijl ?
OR((Q3507344,P27,c(Q15617994)), (Q2187359,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3507344
relation P27
action find
entity Q2187359
relation P27
type Q15617994
{'OR': [['Q3507344', 'P27', {'concept': 'Q15617994'}], ['Q2187359', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . { { resource:Q3507344 property:P27 ?u } UNION { resource:Q2187359 property:P27 ?u } } }
Jules Bijl Sylvie Jacob
action filter_type
action union
action find
entity Sylvie Jacob
relation country of citizenship
action find
entity Jules Bijl
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Sylvie Jacob', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jules Bijl', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Sylvie_Jacob property:country_of_citizenship ?u } UNION { resource:Jules_Bijl property:country_of_citizenship ?u } } }
[]
designation for an administrative territorial entity
Q142 Q29999
SYSTEM
France, Kingdom of the Netherlands
Q142 Q29999
OR((Q3507344,P27,c(Q15617994)), (Q2187359,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3507344
relation P27
action find
entity Q2187359
relation P27
type Q15617994
[ANSWERS] are the native countriesof Sylvie Jacob or Jules Bijl
{'OR': [['Q3507344', 'P27', {'concept': 'Q15617994'}], ['Q2187359', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . { { resource:Q3507344 property:P27 ?u } UNION { resource:Q2187359 property:P27 ?u } } }
France Kingdom of the Netherlands
France and Kingdom of the Netherlands are the native countriesof Sylvie Jacob or Jules Bijl
France Kingdom of the Netherlands
action filter_type
action union
action find
entity Sylvie Jacob
relation country of citizenship
action find
entity Jules Bijl
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Sylvie Jacob', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jules Bijl', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Sylvie_Jacob property:country_of_citizenship ?u } UNION { resource:Jules_Bijl property:country_of_citizenship ?u } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories are known to have diplomatic connections with atmost 25 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 25
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?u ) WHERE { ?o rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 . ?o property:P530 ?b } GROUP BY ?o } . FILTER ( ?u <= 25 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 25
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?u ) WHERE { ?o rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation ?b } GROUP BY ?o } . FILTER ( ?u <= 25 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
10
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 25
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?u ) WHERE { ?o rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 . ?o property:P530 ?b } GROUP BY ?o } . FILTER ( ?u <= 25 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
10
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 25
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?b ) AS ?u ) WHERE { ?o rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation ?b } GROUP BY ?o } . FILTER ( ?u <= 25 ) }
[]