Simple Question (Direct)
Simple Question
Q2469402
P69
Q3918
USER
Where was Sigurður Nordal educated ?
(Q2469402,P69,c(Q3918))
action filter_type
action find
entity Q2469402
relation P69
type Q3918
['Q2469402', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?g WHERE { resource:Q2469402 property:P69 ?g . ?g rdf:type ontology:Q3918 }
Sigurður Nordal
action filter_type
action find
entity Sigurður Nordal
relation educated at
type university
['Sigurður Nordal', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?g WHERE { resource:Sigurður_Nordal property:educated_at ?g . ?g rdf:type ontology:university }
[]
university
Q186285
SYSTEM
University of Copenhagen
Q186285
(Q2469402,P69,c(Q3918))
action filter_type
action find
entity Q2469402
relation P69
type Q3918
Sigurður Nordal was educated in [ANSWER]
['Q2469402', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?g WHERE { resource:Q2469402 property:P69 ?g . ?g rdf:type ontology:Q3918 }
University of Copenhagen
Sigurður Nordal was educated in University of Copenhagen
University of Copenhagen
action filter_type
action find
entity Sigurður Nordal
relation educated at
type university
['Sigurður Nordal', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?g WHERE { resource:Sigurður_Nordal property:educated_at ?g . ?g rdf:type ontology:university }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2469402
P106
Q12737077
USER
What are the professions of Sigurður Nordal ?
(Q2469402,P106,c(Q12737077))
action filter_type
action find
entity Q2469402
relation P106
type Q12737077
['Q2469402', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q2469402 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
Sigurður Nordal
action filter_type
action find
entity Sigurður Nordal
relation occupation
type occupation
['Sigurður Nordal', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Sigurður_Nordal property:occupation ?a . ?a rdf:type ontology:occupation }
[]
occupation
Q193391 Q5428874 Q36180
SYSTEM
diplomat, faculty, writer
Q193391 Q5428874 Q36180 Q49757
(Q2469402,P106,c(Q12737077))
action filter_type
action find
entity Q2469402
relation P106
type Q12737077
The professions of Sigurður Nordal are a [ANSWERS]
['Q2469402', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?a WHERE { resource:Q2469402 property:P106 ?a . ?a rdf:type ontology:Q12737077 }
diplomat faculty writer poet
The professions of Sigurður Nordal are a diplomat, faculty and writer
diplomat faculty writer
action filter_type
action find
entity Sigurður Nordal
relation occupation
type occupation
['Sigurður Nordal', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?a WHERE { resource:Sigurður_Nordal property:occupation ?a . ?a rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6833656
P106
Q502895
USER
Do Michael Quealy have career as those occupations ?
(Q6833656,P106,Q193391) (Q6833656,P106,Q5428874) (Q6833656,P106,Q36180)
action is_in
entity prev_answer
action find
entity Q6833656
relation P106
['Q6833656', 'P106', 'Q193391'] ['Q6833656', 'P106', 'Q5428874'] ['Q6833656', 'P106', 'Q36180']
ASK WHERE { resource:Q6833656 property:P106 ?d . VALUES ( ?d ) { ( resource:Q193391 ) ( resource:Q5428874 ) ( resource:Q36180 ) } }
Michael Quealy
action is_in
entity prev_answer
action find
entity Michael Quealy
relation occupation
['Michael Quealy', 'occupation', 'diplomat'] ['Michael Quealy', 'occupation', 'faculty'] ['Michael Quealy', 'occupation', 'writer']
ASK WHERE { resource:Michael_Quealy property:occupation ?d . VALUES ( ?d ) { ( resource:diplomat ) ( resource:faculty ) ( resource:writer ) } }
[]
common name
SYSTEM
NO
(Q6833656,P106,Q193391) (Q6833656,P106,Q5428874) (Q6833656,P106,Q36180)
action is_in
entity prev_answer
action find
entity Q6833656
relation P106
[ANSWER]
['Q6833656', 'P106', 'Q193391'] ['Q6833656', 'P106', 'Q5428874'] ['Q6833656', 'P106', 'Q36180']
ASK WHERE { resource:Q6833656 property:P106 ?d . VALUES ( ?d ) { ( resource:Q193391 ) ( resource:Q5428874 ) ( resource:Q36180 ) } }
No
action is_in
entity prev_answer
action find
entity Michael Quealy
relation occupation
['Michael Quealy', 'occupation', 'diplomat'] ['Michael Quealy', 'occupation', 'faculty'] ['Michael Quealy', 'occupation', 'writer']
ASK WHERE { resource:Michael_Quealy property:occupation ?d . VALUES ( ?d ) { ( resource:diplomat ) ( resource:faculty ) ( resource:writer ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q2182480
P417
Q502895 Q12737077
USER
How many people are the patron saints of greater number of occupations than Felice ?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q2182480
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q502895 . ?i property:P417 ?g } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:Q2182480 property:P417 ?h . ?h rdf:type ontology:Q502895 } } . FILTER ( ?r > ?k ) }
Felice
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Felice
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ontology:occupation . ?g rdf:type ontology:common_name . ?i property:patron_saint ?g } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:Felice property:patron_saint ?h . ?h rdf:type ontology:common_name } } . FILTER ( ?r > ?k ) }
[]
common name occupation
SYSTEM
54
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q2182480
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q502895 . ?i property:P417 ?g } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:Q2182480 property:P417 ?h . ?h rdf:type ontology:Q502895 } } . FILTER ( ?r > ?k ) }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
54
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Felice
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?q ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ontology:occupation . ?g rdf:type ontology:common_name . ?i property:patron_saint ?g } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?k ) WHERE { resource:Felice property:patron_saint ?h . ?h rdf:type ontology:common_name } } . FILTER ( ?r > ?k ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q355884
P417
Q502895 Q12737077
USER
And also tell me about Josaphat Kuntsevych?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q355884
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?i ) WHERE { ?n property:P417 ?r . ?r rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { resource:Q355884 property:P417 ?a . ?a rdf:type ontology:Q502895 } } . FILTER ( ?i > ?j ) }
Josaphat Kuntsevych
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Josaphat Kuntsevych
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?i ) WHERE { ?n property:patron_saint ?r . ?r rdf:type ontology:common_name . ?n rdf:type ontology:occupation } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { resource:Josaphat_Kuntsevych property:patron_saint ?a . ?a rdf:type ontology:common_name } } . FILTER ( ?i > ?j ) }
[]
common name occupation
SYSTEM
54
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q355884
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?i ) WHERE { ?n property:P417 ?r . ?r rdf:type ontology:Q502895 . ?n rdf:type ontology:Q12737077 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { resource:Q355884 property:P417 ?a . ?a rdf:type ontology:Q502895 } } . FILTER ( ?i > ?j ) }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
54
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Josaphat Kuntsevych
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?i ) WHERE { ?n property:patron_saint ?r . ?r rdf:type ontology:common_name . ?n rdf:type ontology:occupation } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { resource:Josaphat_Kuntsevych property:patron_saint ?a . ?a rdf:type ontology:common_name } } . FILTER ( ?i > ?j ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q15494 Q186285
P47 P17
Q1048835
USER
Which political territories are University of Copenhagen situated in or have a shared border with Castellar del Riu ?
OR((Q186285,P17,c(Q1048835)), (Q15494,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q186285
relation P17
action find
entity Q15494
relation P47
type Q1048835
{'OR': [['Q186285', 'P17', {'concept': 'Q1048835'}], ['Q15494', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q186285 property:P17 ?x } UNION { resource:Q15494 property:P47 ?x } } . ?x rdf:type ontology:Q1048835 }
Castellar del Riu University of Copenhagen
action filter_type
action union
action find
entity University of Copenhagen
relation country
action find
entity Castellar del Riu
relation shares border with
type political territorial entity
{'OR': [['University of Copenhagen', 'country', {'concept': 'political territorial entity'}], ['Castellar del Riu', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:University_of_Copenhagen property:country ?x } UNION { resource:Castellar_del_Riu property:shares_border_with ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q15489 Q35 Q15508 Q15504 Q15522 Q1905661
SYSTEM
Capolat, Denmark, Fígols, Cercs, Montmajor, Guixers
Q15489 Q35 Q15508 Q15504 Q15522 Q1905661
OR((Q186285,P17,c(Q1048835)), (Q15494,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q186285
relation P17
action find
entity Q15494
relation P47
type Q1048835
[ANSWERS] are University of Copenhagen situated in or have a shared border with Castellar del Riu
{'OR': [['Q186285', 'P17', {'concept': 'Q1048835'}], ['Q15494', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q186285 property:P17 ?x } UNION { resource:Q15494 property:P47 ?x } } . ?x rdf:type ontology:Q1048835 }
Capolat Denmark Fígols Cercs Montmajor Guixers
Capolat, Denmark, Fígols, Cercs, Montmajor and Guixers are University of Copenhagen situated in or have a shared border with Castellar del Riu
Capolat Denmark Fígols Cercs Montmajor Guixers
action filter_type
action union
action find
entity University of Copenhagen
relation country
action find
entity Castellar del Riu
relation shares border with
type political territorial entity
{'OR': [['University of Copenhagen', 'country', {'concept': 'political territorial entity'}], ['Castellar del Riu', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:University_of_Copenhagen property:country ?x } UNION { resource:Castellar_del_Riu property:shares_border_with ?x } } . ?x rdf:type ontology:political_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1905661
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of that political territory ?
(Q1905661,P1313,c(Q12737077))
action filter_type
action find
entity Q1905661
relation P1313
type Q12737077
['Q1905661', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q1905661 property:P1313 ?x . ?x rdf:type ontology:Q12737077 }
Guixers
action filter_type
action find
entity Guixers
relation office held by head of government
type occupation
['Guixers', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Guixers property:office_held_by_head_of_government ?x . ?x rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q15504
SYSTEM
Did you mean Cercs ?
Q15489 Q35 Q15508 Q15504 Q15522 Q1905661
(Q15489,P1313,c(Q12737077)) (Q35,P1313,c(Q12737077)) (Q15508,P1313,c(Q12737077)) (Q15504,P1313,c(Q12737077)) (Q15522,P1313,c(Q12737077)) (Q1905661,P1313,c(Q12737077))
[ANSWER]
['Q15489', 'P1313', {'concept': 'Q12737077'}] ['Q35', 'P1313', {'concept': 'Q12737077'}] ['Q15508', 'P1313', {'concept': 'Q12737077'}] ['Q15504', 'P1313', {'concept': 'Q12737077'}] ['Q15522', 'P1313', {'concept': 'Q12737077'}] ['Q1905661', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q1905661 property:P1313 ?x . ?x rdf:type ontology:Q12737077 }
Capolat Denmark Fígols Cercs Montmajor Guixers
Did you mean Cercs ?
Cercs
['Capolat', 'office held by head of government', {'concept': 'occupation'}] ['Denmark', 'office held by head of government', {'concept': 'occupation'}] ['Fígols', 'office held by head of government', {'concept': 'occupation'}] ['Cercs', 'office held by head of government', {'concept': 'occupation'}] ['Montmajor', 'office held by head of government', {'concept': 'occupation'}] ['Guixers', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Guixers property:office_held_by_head_of_government ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Guixers. Could you tell me the answer for that?
(Q1905661,P1313,c(Q12737077))
Q1905661
['Q1905661', 'P1313', {'concept': 'Q12737077'}]
['Guixers', 'office held by head of government', {'concept': 'occupation'}]
[]
Q26696865
SYSTEM
mayor of Guixers
Q26696865
(Q1905661,P1313,c(Q12737077))
action filter_type
action find
entity Q1905661
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of that political territory
['Q1905661', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q1905661 property:P1313 ?x . ?x rdf:type ontology:Q12737077 }
mayor of Guixers
The mayor of Guixers serves as the political office that is fulfilled by the head of the government of that political territory
mayor of Guixers
action filter_type
action find
entity Guixers
relation office held by head of government
type occupation
['Guixers', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Guixers property:office_held_by_head_of_government ?x . ?x rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q26696865 Q502986
P17
Q15617994
USER
Does that occupation belong to Großheubach ?
(Q26696865,P17,Q502986)
action is_in
entity Q502986
action find
entity Q26696865
relation P17
['Q26696865', 'P17', 'Q502986']
ASK WHERE { resource:Q26696865 property:P17 resource:Q502986 }
mayor of Guixers Großheubach
action is_in
entity Großheubach
action find
entity mayor of Guixers
relation country
['mayor of Guixers', 'country', 'Großheubach']
ASK WHERE { resource:mayor_of_Guixers property:country resource:Großheubach }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q26696865,P17,Q502986)
action is_in
entity Q502986
action find
entity Q26696865
relation P17
[ANSWER]
['Q26696865', 'P17', 'Q502986']
ASK WHERE { resource:Q26696865 property:P17 resource:Q502986 }
No
action is_in
entity Großheubach
action find
entity mayor of Guixers
relation country
['mayor of Guixers', 'country', 'Großheubach']
ASK WHERE { resource:mayor_of_Guixers property:country resource:Großheubach }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q35 Q3172565 Q102139
P35
Q502895
USER
Does Denmark have Jean Hubert and Margrethe II of Denmark as its chief of state ?
(Q35,P35,Q3172565) (Q35,P35,Q102139)
action is_in
entity Q35
action intersection
action find_reverse
entity Q3172565
relation P35
action find_reverse
entity Q102139
relation P35
['Q35', 'P35', 'Q3172565'] ['Q35', 'P35', 'Q102139']
ASK WHERE { resource:Q35 property:P35 resource:Q102139 . resource:Q35 property:P35 resource:Q3172565 }
Denmark Jean Hubert Margrethe II of Denmark
action is_in
entity Denmark
action intersection
action find_reverse
entity Jean Hubert
relation head of state
action find_reverse
entity Margrethe II of Denmark
relation head of state
['Denmark', 'head of state', 'Jean Hubert'] ['Denmark', 'head of state', 'Margrethe II of Denmark']
ASK WHERE { resource:Denmark property:head_of_state resource:Margrethe_II_of_Denmark . resource:Denmark property:head_of_state resource:Jean_Hubert }
[]
common name
SYSTEM
NO and YES respectively
(Q35,P35,Q3172565) (Q35,P35,Q102139)
action is_in
entity Q35
action intersection
action find_reverse
entity Q3172565
relation P35
action find_reverse
entity Q102139
relation P35
[ANSWER]
['Q35', 'P35', 'Q3172565'] ['Q35', 'P35', 'Q102139']
ASK WHERE { resource:Q35 property:P35 resource:Q102139 . resource:Q35 property:P35 resource:Q3172565 }
NO and YES respectively
action is_in
entity Denmark
action intersection
action find_reverse
entity Jean Hubert
relation head of state
action find_reverse
entity Margrethe II of Denmark
relation head of state
['Denmark', 'head of state', 'Jean Hubert'] ['Denmark', 'head of state', 'Margrethe II of Denmark']
ASK WHERE { resource:Denmark property:head_of_state resource:Margrethe_II_of_Denmark . resource:Denmark property:head_of_state resource:Jean_Hubert }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3439798
P180
Q12737077 Q1792379 Q386724
USER
How many occupations are depicted in approximately the same number of art genres and works as King of France ?
(c(Q1792379)|c(Q386724),P180,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q3439798
relation P180
type Q1792379
type Q386724
[[{'concept': 'Q1792379'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) ?t WHERE { ?p rdf:type ?m . VALUES ( ?m ) { ( ontology:Q386724 ) ( ontology:Q1792379 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:P180 resource:Q3439798 . { { ?z rdf:type ontology:Q1792379 } UNION { ?z rdf:type ontology:Q386724 } } } } . FILTER ( ?d = ?n ) }
King of France
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity King of France
relation depicts
type art genre
type work
[[{'concept': 'art genre'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) ?t WHERE { ?p rdf:type ?m . VALUES ( ?m ) { ( ontology:work ) ( ontology:art_genre ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:depicts resource:King_of_France . { { ?z rdf:type ontology:art_genre } UNION { ?z rdf:type ontology:work } } } } . FILTER ( ?d = ?n ) }
[]
occupation art genre work
SYSTEM
224
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q177220 Q1569439 Q131512 Q16735601 Q37226 Q1401609 Q27621374 Q152355 Q1218776 Q1124183 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q1250916 Q4610556 Q81710 Q1259917 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q47064 Q185196 Q486748 Q328325 Q11900058 Q483501 Q215536 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q19723482 Q12902372 Q170790 Q1139055 Q1028181 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q733786 Q2309900 Q805221 Q5371902 Q17126809 Q12097 Q848550 Q386854 Q202648 Q1753370 Q107711 Q12059906 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q19546 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q14009165 Q15954519 Q2981922 Q10833314 Q1318187 Q29182 Q326358 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q207651 Q5716684 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q1627992 Q2309784 Q253567 Q3439798 Q2191547 Q838811 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q331432 Q639669 Q49757 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q15296811 Q765541 Q2011889 Q49476 Q1281618 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q1792379)|c(Q386724),P180,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q3439798
relation P180
type Q1792379
type Q386724
[ANSWER]
[[{'concept': 'Q1792379'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) ?t WHERE { ?p rdf:type ?m . VALUES ( ?m ) { ( ontology:Q386724 ) ( ontology:Q1792379 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:P180 resource:Q3439798 . { { ?z rdf:type ontology:Q1792379 } UNION { ?z rdf:type ontology:Q386724 } } } } . FILTER ( ?d = ?n ) }
fiddler acrobat milkmaid worker standard-bearer singer sheep shearer farmer florist teacher vaquero bear hunter cobbler arriero lumberjack sewing executor astronaut cooper house painter organist double-bassist actor writer valet sex worker woman of letters ventriloquist amateur wrestler geographer Archbishop of Canterbury minister receptionist milkman coachman warrior model shepherd violinist deacon wet nurse sailor clown spinner butcher religious servant detective military personnel midwife pianist stonemason explorer artist merchant civil servant sower abbé architect street musician nurse parson mandolinist flautist mathematician tax collector painter mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic monk helmsman ballet dancer harpsichordist rescuer king VOC Opperhoofd in Japan drummer referee curate firefighter herder dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja page friar hobo fishmonger recorder player laborer pope priestess gravedigger erudite comics artist boxer odalisque chronicler plowman trapper alchemist American pioneer tennis player scrivener bishop joiner goatherd pedicure Catholic priest courtesan member of parliament bartender clogmaker peddler reaper condottiero canon chess player discus thrower bassoonist mufti cowboy rabbi mime artist scientist harpist blacksmith mahout magistrate tailor cardinal housekeeper theologian courier monarch salt pan worker porter pastor courtier judge abbot matador goldsmith waterseller pretender astronomer surgeon domestic worker cook executioner dancer Kassandra embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker maid lady's maid sport cyclist apprentice King of France picador peasant woodcutter lacemaker Snake charming carpenter school teacher officer fisherman musician poet baker knife grinder police officer guard Maid of honour draughtsperson kazasker madam archbishop sculptor boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric construction worker basketry mail carrier artisan art model bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
224
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity King of France
relation depicts
type art genre
type work
[[{'concept': 'art genre'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) ?t WHERE { ?p rdf:type ?m . VALUES ( ?m ) { ( ontology:work ) ( ontology:art_genre ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:depicts resource:King_of_France . { { ?z rdf:type ontology:art_genre } UNION { ?z rdf:type ontology:work } } } } . FILTER ( ?d = ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q2340797
P180
Q12737077 Q1792379 Q386724
USER
And what about quarryman?
(c(Q1792379)|c(Q386724),P180,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q2340797
relation P180
type Q1792379
type Q386724
[[{'concept': 'Q1792379'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?n ) WHERE { { ?h property:P180 ?b . ?h rdf:type ontology:Q1792379 . ?b rdf:type ontology:Q12737077 } UNION { ?h property:P180 ?b . ?b rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q386724 } } GROUP BY ?b } . FILTER ( ?n = ?r ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?s property:P180 resource:Q2340797 . { VALUES ( ?p ) { ( ontology:Q1792379 ) ( ontology:Q386724 ) } . ?s rdf:type ?p } } } }
quarryman
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity quarryman
relation depicts
type art genre
type work
[[{'concept': 'art genre'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?n ) WHERE { { ?h property:depicts ?b . ?h rdf:type ontology:art_genre . ?b rdf:type ontology:occupation } UNION { ?h property:depicts ?b . ?b rdf:type ontology:occupation . ?h rdf:type ontology:work } } GROUP BY ?b } . FILTER ( ?n = ?r ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?s property:depicts resource:quarryman . { VALUES ( ?p ) { ( ontology:art_genre ) ( ontology:work ) } . ?s rdf:type ?p } } } }
[]
occupation art genre work
SYSTEM
224
Q19754019 Q11957145 Q1934482 Q19937286 Q2486919 Q177220 Q1569439 Q131512 Q16735601 Q37226 Q1401609 Q27621374 Q152355 Q1218776 Q1124183 Q652122 Q654437 Q11631 Q38883 Q288728 Q765778 Q2995983 Q33999 Q36180 Q13472752 Q852857 Q381353 Q15618890 Q19595175 Q901402 Q29282 Q83307 Q1722406 Q278138 Q1221610 Q1250916 Q4610556 Q81710 Q1259917 Q161944 Q472898 Q45199 Q7358 Q19968805 Q329737 Q4504549 Q842782 Q47064 Q185196 Q486748 Q328325 Q11900058 Q483501 Q215536 Q212238 Q22085061 Q3430033 Q42973 Q14948018 Q186360 Q955464 Q19723482 Q12902372 Q170790 Q1139055 Q1028181 Q30185 Q587524 Q820037 Q852389 Q16624872 Q13219637 Q181765 Q327321 Q549322 Q327029 Q733786 Q2309900 Q805221 Q5371902 Q17126809 Q12097 Q848550 Q386854 Q202648 Q1753370 Q107711 Q12059906 Q2034021 Q11642 Q1595811 Q13474373 Q1413824 Q3499072 Q520549 Q4164507 Q5455155 Q1163330 Q855855 Q548320 Q843281 Q550594 Q3074722 Q19862215 Q19546 Q6116659 Q537575 Q20826540 Q715301 Q11338576 Q622630 Q3330547 Q3214532 Q14009165 Q15954519 Q2981922 Q10833314 Q1318187 Q29182 Q326358 Q5575361 Q1161133 Q250867 Q376924 Q486839 Q808266 Q1540158 Q638172 Q2248045 Q273108 Q1104153 Q10873124 Q13381689 Q15725121 Q185992 Q178521 Q133485 Q674067 Q901 Q3127709 Q1639825 Q589897 Q4594605 Q242468 Q45722 Q2596569 Q1234713 Q848466 Q116 Q20489032 Q1509714 Q152002 Q1511216 Q16533 Q103163 Q2412523 Q211423 Q965417 Q845929 Q11063 Q774306 Q2276446 Q207651 Q5716684 Q170779 Q18575684 Q3128486 Q5420718 Q822146 Q15284879 Q758780 Q36834 Q694116 Q3090865 Q833860 Q1627992 Q2309784 Q253567 Q3439798 Q2191547 Q838811 Q1437754 Q5832280 Q1430627 Q154549 Q2251335 Q189290 Q331432 Q639669 Q49757 Q160131 Q4990607 Q384593 Q680928 Q6735310 Q15296811 Q765541 Q2011889 Q49476 Q1281618 Q2891167 Q685433 Q12299841 Q2095549 Q5061344 Q432386 Q191808 Q182436 Q2259532 Q811122 Q373017 Q2180295 Q1294787 Q1630100 Q2627286 Q437512 Q13414980 Q39631 Q849424 Q842606 Q2340797 Q156839 Q7622988 Q157195
(c(Q1792379)|c(Q386724),P180,c(Q12737077))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q386724
action count
action filter_multi_types
action find_reverse
entity Q2340797
relation P180
type Q1792379
type Q386724
[ANSWER]
[[{'concept': 'Q1792379'}, {'concept': 'Q386724'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?n ) WHERE { { ?h property:P180 ?b . ?h rdf:type ontology:Q1792379 . ?b rdf:type ontology:Q12737077 } UNION { ?h property:P180 ?b . ?b rdf:type ontology:Q12737077 . ?h rdf:type ontology:Q386724 } } GROUP BY ?b } . FILTER ( ?n = ?r ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?s property:P180 resource:Q2340797 . { VALUES ( ?p ) { ( ontology:Q1792379 ) ( ontology:Q386724 ) } . ?s rdf:type ?p } } } }
fiddler acrobat milkmaid worker standard-bearer singer sheep shearer farmer florist teacher vaquero bear hunter cobbler arriero lumberjack sewing executor astronaut cooper house painter organist double-bassist actor writer valet sex worker woman of letters ventriloquist amateur wrestler geographer Archbishop of Canterbury minister receptionist milkman coachman warrior model shepherd violinist deacon wet nurse sailor clown spinner butcher religious servant detective military personnel midwife pianist stonemason explorer artist merchant civil servant sower abbé architect street musician nurse parson mandolinist flautist mathematician tax collector painter mayor bell-ringer miner beekeeper washerwoman cellist Holy Roman Emperor bricklayer torero mechanic monk helmsman ballet dancer harpsichordist rescuer king VOC Opperhoofd in Japan drummer referee curate firefighter herder dressmaker pottery Heimkehrer professional wrestler glassblower chef geologist art critic fishwife Maharaja page friar hobo fishmonger recorder player laborer pope priestess gravedigger erudite comics artist boxer odalisque chronicler plowman trapper alchemist American pioneer tennis player scrivener bishop joiner goatherd pedicure Catholic priest courtesan member of parliament bartender clogmaker peddler reaper condottiero canon chess player discus thrower bassoonist mufti cowboy rabbi mime artist scientist harpist blacksmith mahout magistrate tailor cardinal housekeeper theologian courier monarch salt pan worker porter pastor courtier judge abbot matador goldsmith waterseller pretender astronomer surgeon domestic worker cook executioner dancer Kassandra embroiderer high-ranking civil servant in France exotic dancer lyricist plasterer gardener composer miller tightrope walker maid lady's maid sport cyclist apprentice King of France picador peasant woodcutter lacemaker Snake charming carpenter school teacher officer fisherman musician poet baker knife grinder police officer guard Maid of honour draughtsperson kazasker madam archbishop sculptor boatman salesperson cricketer aviator milkmaid preacher nun librarian cleric construction worker basketry mail carrier artisan art model bushranger weaver Australian-rules footballer physician sea captain Roman emperor quarryman cook street artist waiting staff
224
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type work
action count
action filter_multi_types
action find_reverse
entity quarryman
relation depicts
type art genre
type work
[[{'concept': 'art genre'}, {'concept': 'work'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?n ) WHERE { { ?h property:depicts ?b . ?h rdf:type ontology:art_genre . ?b rdf:type ontology:occupation } UNION { ?h property:depicts ?b . ?b rdf:type ontology:occupation . ?h rdf:type ontology:work } } GROUP BY ?b } . FILTER ( ?n = ?r ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?s property:depicts resource:quarryman . { VALUES ( ?p ) { ( ontology:art_genre ) ( ontology:work ) } . ?s rdf:type ?p } } } }
[]