Simple Question (Direct)
Simple Question
Q816576
P607
Q350604
USER
What was the armed conflict that Ben Nighthorse Campbell took part in
(Q816576,P607,c(Q350604))
action filter_type
action find
entity Q816576
relation P607
type Q350604
['Q816576', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?z WHERE { resource:Q816576 property:P607 ?z . ?z rdf:type ontology:Q350604 }
Ben Nighthorse Campbell
action filter_type
action find
entity Ben Nighthorse Campbell
relation conflict
type armed conflict
['Ben Nighthorse Campbell', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?z WHERE { resource:Ben_Nighthorse_Campbell property:conflict ?z . ?z rdf:type ontology:armed_conflict }
[]
armed conflict
Q8663
SYSTEM
Korean War
Q8663
(Q816576,P607,c(Q350604))
action filter_type
action find
entity Q816576
relation P607
type Q350604
The armed conflict that Ben Nighthorse Campbell took part in was the [ANSWER]
['Q816576', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?z WHERE { resource:Q816576 property:P607 ?z . ?z rdf:type ontology:Q350604 }
Korean War
The armed conflict that Ben Nighthorse Campbell took part in was the Korean War
Korean War
action filter_type
action find
entity Ben Nighthorse Campbell
relation conflict
type armed conflict
['Ben Nighthorse Campbell', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?z WHERE { resource:Ben_Nighthorse_Campbell property:conflict ?z . ?z rdf:type ontology:armed_conflict }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8663
P1344
Q1048835
USER
Which political territory took part in that armed conflict ?
(c(Q1048835),P1344,Q8663)
action filter_type
action find_reverse
entity Q8663
relation P1344
type Q1048835
[{'concept': 'Q1048835'}, 'P1344', 'Q8663']
SELECT DISTINCT ?x WHERE { ?x property:P1344 resource:Q8663 . ?x rdf:type ontology:Q1048835 }
Korean War
action filter_type
action find_reverse
entity Korean War
relation participant of
type political territorial entity
[{'concept': 'political territorial entity'}, 'participant of', 'Korean War']
SELECT DISTINCT ?x WHERE { ?x property:participant_of resource:Korean_War . ?x rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P1344,Q8663)
action filter_type
action find_reverse
entity Q8663
relation P1344
type Q1048835
[ANSWER] took part in that armed conflict
[{'concept': 'Q1048835'}, 'P1344', 'Q8663']
SELECT DISTINCT ?x WHERE { ?x property:P1344 resource:Q8663 . ?x rdf:type ontology:Q1048835 }
Australia
Australia took part in that armed conflict
Australia
action filter_type
action find_reverse
entity Korean War
relation participant of
type political territorial entity
[{'concept': 'political territorial entity'}, 'participant of', 'Korean War']
SELECT DISTINCT ?x WHERE { ?x property:participant_of resource:Korean_War . ?x rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q408
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of that political territory ?
(Q408,P1313,c(Q12737077))
action filter_type
action find
entity Q408
relation P1313
type Q12737077
['Q408', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q408 property:P1313 ?t . ?t rdf:type ontology:Q12737077 }
Australia
action filter_type
action find
entity Australia
relation office held by head of government
type occupation
['Australia', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Australia property:office_held_by_head_of_government ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q319145
SYSTEM
Prime Minister of Australia
Q319145
(Q408,P1313,c(Q12737077))
action filter_type
action find
entity Q408
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of that political territory
['Q408', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q408 property:P1313 ?t . ?t rdf:type ontology:Q12737077 }
Prime Minister of Australia
The Prime Minister of Australia serves as the political office that is fulfilled by the head of the government of that political territory
Prime Minister of Australia
action filter_type
action find
entity Australia
relation office held by head of government
type occupation
['Australia', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Australia property:office_held_by_head_of_government ?t . ?t rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q319145 Q312722
P39
Q502895
USER
Was Harold Holt responsible for occupying the position of that occupation ?
(Q312722,P39,Q319145)
action is_in
entity Q319145
action find
entity Q312722
relation P39
['Q312722', 'P39', 'Q319145']
ASK WHERE { resource:Q312722 property:P39 resource:Q319145 }
Prime Minister of Australia Harold Holt
action is_in
entity Prime Minister of Australia
action find
entity Harold Holt
relation position held
['Harold Holt', 'position held', 'Prime Minister of Australia']
ASK WHERE { resource:Harold_Holt property:position_held resource:Prime_Minister_of_Australia }
[]
common name
SYSTEM
YES
(Q312722,P39,Q319145)
action is_in
entity Q319145
action find
entity Q312722
relation P39
[ANSWER]
['Q312722', 'P39', 'Q319145']
ASK WHERE { resource:Q312722 property:P39 resource:Q319145 }
Yes
action is_in
entity Prime Minister of Australia
action find
entity Harold Holt
relation position held
['Harold Holt', 'position held', 'Prime Minister of Australia']
ASK WHERE { resource:Harold_Holt property:position_held resource:Prime_Minister_of_Australia }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15452925 Q312722
P27
Q1048835
USER
Which political territories are the native countriesof Harold Holt or Edmund Bernatzik ?
OR((Q312722,P27,c(Q1048835)), (Q15452925,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q312722
relation P27
action find
entity Q15452925
relation P27
type Q1048835
{'OR': [['Q312722', 'P27', {'concept': 'Q1048835'}], ['Q15452925', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { { ?z property:P27 ?f . VALUES ( ?z ) { ( resource:Q312722 ) ( resource:Q15452925 ) } } . ?f rdf:type ontology:Q1048835 }
Edmund Bernatzik Harold Holt
action filter_type
action union
action find
entity Harold Holt
relation country of citizenship
action find
entity Edmund Bernatzik
relation country of citizenship
type political territorial entity
{'OR': [['Harold Holt', 'country of citizenship', {'concept': 'political territorial entity'}], ['Edmund Bernatzik', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { ?z property:country_of_citizenship ?f . VALUES ( ?z ) { ( resource:Harold_Holt ) ( resource:Edmund_Bernatzik ) } } . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q40
SYSTEM
Australia, Austria
Q408 Q40
OR((Q312722,P27,c(Q1048835)), (Q15452925,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q312722
relation P27
action find
entity Q15452925
relation P27
type Q1048835
[ANSWERS] are the native countriesof Harold Holt or Edmund Bernatzik
{'OR': [['Q312722', 'P27', {'concept': 'Q1048835'}], ['Q15452925', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { { ?z property:P27 ?f . VALUES ( ?z ) { ( resource:Q312722 ) ( resource:Q15452925 ) } } . ?f rdf:type ontology:Q1048835 }
Australia Austria
Australia and Austria are the native countriesof Harold Holt or Edmund Bernatzik
Australia Austria
action filter_type
action union
action find
entity Harold Holt
relation country of citizenship
action find
entity Edmund Bernatzik
relation country of citizenship
type political territorial entity
{'OR': [['Harold Holt', 'country of citizenship', {'concept': 'political territorial entity'}], ['Edmund Bernatzik', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { ?z property:country_of_citizenship ?f . VALUES ( ?z ) { ( resource:Harold_Holt ) ( resource:Edmund_Bernatzik ) } } . ?f rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q15452925
P106
Q28640 Q12737077
USER
How many professions and occupations are the professions of Edmund Bernatzik ?
(Q15452925,P106,c(Q28640)) (Q15452925,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q15452925
relation P106
type Q28640
action filter_type
action find
entity Q15452925
relation P106
type Q12737077
['Q15452925', 'P106', {'concept': 'Q28640'}] ['Q15452925', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { resource:Q15452925 property:P106 ?c . ?c rdf:type ontology:Q28640 } UNION { resource:Q15452925 property:P106 ?c . ?c rdf:type ontology:Q12737077 } }
Edmund Bernatzik
action count
action union
action filter_type
action find
entity Edmund Bernatzik
relation occupation
type profession
action filter_type
action find
entity Edmund Bernatzik
relation occupation
type occupation
['Edmund Bernatzik', 'occupation', {'concept': 'profession'}] ['Edmund Bernatzik', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { resource:Edmund_Bernatzik property:occupation ?c . ?c rdf:type ontology:profession } UNION { resource:Edmund_Bernatzik property:occupation ?c . ?c rdf:type ontology:occupation } }
[]
profession occupation
SYSTEM
1 professions and 2 occupations
Q16533 Q185351 Q1622272
(Q15452925,P106,c(Q28640)) (Q15452925,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q15452925
relation P106
type Q28640
action filter_type
action find
entity Q15452925
relation P106
type Q12737077
[ANSWER]
['Q15452925', 'P106', {'concept': 'Q28640'}] ['Q15452925', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { resource:Q15452925 property:P106 ?c . ?c rdf:type ontology:Q28640 } UNION { resource:Q15452925 property:P106 ?c . ?c rdf:type ontology:Q12737077 } }
judge jurist university teacher
1 professions and 2 occupations
action count
action union
action filter_type
action find
entity Edmund Bernatzik
relation occupation
type profession
action filter_type
action find
entity Edmund Bernatzik
relation occupation
type occupation
['Edmund Bernatzik', 'occupation', {'concept': 'profession'}] ['Edmund Bernatzik', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) WHERE { { resource:Edmund_Bernatzik property:occupation ?c . ?c rdf:type ontology:profession } UNION { resource:Edmund_Bernatzik property:occupation ?c . ?c rdf:type ontology:occupation } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1279984 Q15452925
P27
Q1048835
USER
Which political territories do Edmund Bernatzik and Johann Paul belong to ?
AND((Q15452925,P27,c(Q1048835)), (Q1279984,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q15452925
relation P27
action find
entity Q1279984
relation P27
type Q1048835
{'AND': [['Q15452925', 'P27', {'concept': 'Q1048835'}], ['Q1279984', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { resource:Q15452925 property:P27 ?s . resource:Q1279984 property:P27 ?s . ?s rdf:type ontology:Q1048835 }
Johann Paul Edmund Bernatzik
action filter_type
action intersection
action find
entity Edmund Bernatzik
relation country of citizenship
action find
entity Johann Paul
relation country of citizenship
type political territorial entity
{'AND': [['Edmund Bernatzik', 'country of citizenship', {'concept': 'political territorial entity'}], ['Johann Paul', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { resource:Edmund_Bernatzik property:country_of_citizenship ?s . resource:Johann_Paul property:country_of_citizenship ?s . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
AND((Q15452925,P27,c(Q1048835)), (Q1279984,P27,c(Q1048835)))
action filter_type
action intersection
action find
entity Q15452925
relation P27
action find
entity Q1279984
relation P27
type Q1048835
Edmund Bernatzik and Johann Paul belong to the [ANSWER]
{'AND': [['Q15452925', 'P27', {'concept': 'Q1048835'}], ['Q1279984', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { resource:Q15452925 property:P27 ?s . resource:Q1279984 property:P27 ?s . ?s rdf:type ontology:Q1048835 }
Austria
Edmund Bernatzik and Johann Paul belong to the Austria
Austria
action filter_type
action intersection
action find
entity Edmund Bernatzik
relation country of citizenship
action find
entity Johann Paul
relation country of citizenship
type political territorial entity
{'AND': [['Edmund Bernatzik', 'country of citizenship', {'concept': 'political territorial entity'}], ['Johann Paul', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { resource:Edmund_Bernatzik property:country_of_citizenship ?s . resource:Johann_Paul property:country_of_citizenship ?s . ?s rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1279984
P734
Q82799
USER
Which name is associated with Johann Paul ?
(Q40,P734,c(Q82799))
action filter_type
action find
entity Q1279984
relation P734
type Q82799
['Q40', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q1279984 property:P734 ?s . ?s rdf:type ontology:Q82799 }
Johann Paul
action filter_type
action find
entity Johann Paul
relation family name
type name
['Austria', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Johann_Paul property:family_name ?s . ?s rdf:type ontology:name }
[]
name
Q17641342
SYSTEM
Paul
Q17641342
(Q40,P734,c(Q82799))
action filter_type
action find
entity Q1279984
relation P734
type Q82799
[ANSWER] is associated with Johann [ANSWER]
['Q40', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q1279984 property:P734 ?s . ?s rdf:type ontology:Q82799 }
Paul
Paul is associated with Johann Paul
Paul
action filter_type
action find
entity Johann Paul
relation family name
type name
['Austria', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Johann_Paul property:family_name ?s . ?s rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q370360 Q1279984
P734
Q82799
USER
Or Tristan Jones?
OR((Q1279984,P734,c(Q82799)), (Q370360,P734,c(Q82799)))
action filter_type
action union
action find
entity Q1279984
relation P734
action find
entity Q370360
relation P734
type Q82799
{'OR': [['Q1279984', 'P734', {'concept': 'Q82799'}], ['Q370360', 'P734', {'concept': 'Q82799'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q1279984 property:P734 ?n } UNION { resource:Q370360 property:P734 ?n } } . ?n rdf:type ontology:Q82799 }
Tristan Jones Johann Paul
action filter_type
action union
action find
entity Johann Paul
relation family name
action find
entity Tristan Jones
relation family name
type name
{'OR': [['Johann Paul', 'family name', {'concept': 'name'}], ['Tristan Jones', 'family name', {'concept': 'name'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Johann_Paul property:family_name ?n } UNION { resource:Tristan_Jones property:family_name ?n } } . ?n rdf:type ontology:name }
[]
name
Q17641342 Q59853
SYSTEM
Paul, Jones
Q17641342 Q59853
OR((Q1279984,P734,c(Q82799)), (Q370360,P734,c(Q82799)))
action filter_type
action union
action find
entity Q1279984
relation P734
action find
entity Q370360
relation P734
type Q82799
[ANSWERS]
{'OR': [['Q1279984', 'P734', {'concept': 'Q82799'}], ['Q370360', 'P734', {'concept': 'Q82799'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q1279984 property:P734 ?n } UNION { resource:Q370360 property:P734 ?n } } . ?n rdf:type ontology:Q82799 }
Paul Jones
Paul Jones
action filter_type
action union
action find
entity Johann Paul
relation family name
action find
entity Tristan Jones
relation family name
type name
{'OR': [['Johann Paul', 'family name', {'concept': 'name'}], ['Tristan Jones', 'family name', {'concept': 'name'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Johann_Paul property:family_name ?n } UNION { resource:Tristan_Jones property:family_name ?n } } . ?n rdf:type ontology:name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q25368020
P138
Q486972 Q15617994 Q82799
USER
Which names have more number of human settlements and administrative territories as their toponym than Racine ?
(c(Q82799),P138,c(Q486972)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q486972
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action count
action filter_multi_types
action find
entity Q25368020
relation P138
type Q486972
type Q15617994
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?i WHERE { { ?i rdf:type ontology:Q82799 . ?k rdf:type ontology:Q15617994 . ?i property:P138 ?k } UNION { ?i property:P138 ?k . ?i rdf:type ontology:Q82799 . ?k rdf:type ontology:Q486972 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { resource:Q25368020 property:P138 ?h . { { ?h rdf:type ontology:Q486972 } UNION { ?h rdf:type ontology:Q15617994 } } } } . FILTER ( ?r > ?p ) }
Racine
action greater
action union
action find_tuple_counts
relation named after
type name
type human settlement
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Racine
relation named after
type human settlement
type designation for an administrative territorial entity
[{'concept': 'name'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?i WHERE { { ?i rdf:type ontology:name . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:named_after ?k } UNION { ?i property:named_after ?k . ?i rdf:type ontology:name . ?k rdf:type ontology:human_settlement } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { resource:Racine property:named_after ?h . { { ?h rdf:type ontology:human_settlement } UNION { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?r > ?p ) }
[]
human settlement designation for an administrative territorial entity name
Q27022433 Q24229341
SYSTEM
Danziger, Toscano
Q27022433 Q24229341
(c(Q82799),P138,c(Q486972)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q486972
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action count
action filter_multi_types
action find
entity Q25368020
relation P138
type Q486972
type Q15617994
[ANSWERS] have more number of human settlements and administrative territories as their toponym than Racine
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?i WHERE { { ?i rdf:type ontology:Q82799 . ?k rdf:type ontology:Q15617994 . ?i property:P138 ?k } UNION { ?i property:P138 ?k . ?i rdf:type ontology:Q82799 . ?k rdf:type ontology:Q486972 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { resource:Q25368020 property:P138 ?h . { { ?h rdf:type ontology:Q486972 } UNION { ?h rdf:type ontology:Q15617994 } } } } . FILTER ( ?r > ?p ) }
Danziger Toscano
Danziger and Toscano have more number of human settlements and administrative territories as their toponym than Racine
Danziger Toscano
action greater
action union
action find_tuple_counts
relation named after
type name
type human settlement
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Racine
relation named after
type human settlement
type designation for an administrative territorial entity
[{'concept': 'name'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?r ) ?i WHERE { { ?i rdf:type ontology:name . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:named_after ?k } UNION { ?i property:named_after ?k . ?i rdf:type ontology:name . ?k rdf:type ontology:human_settlement } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { resource:Racine property:named_after ?h . { { ?h rdf:type ontology:human_settlement } UNION { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?r > ?p ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q24699545
P138
Q486972 Q15617994 Q82799
USER
And also tell me about Saunier?
(c(Q82799),P138,c(Q486972)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q486972
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action count
action filter_multi_types
action find
entity Q24699545
relation P138
type Q486972
type Q15617994
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?o WHERE { { ?o rdf:type ontology:Q82799 . ?c rdf:type ontology:Q486972 . ?o property:P138 ?c } UNION { ?o property:P138 ?c . ?c rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q82799 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { resource:Q24699545 property:P138 ?g . { { ?g rdf:type ontology:Q486972 } UNION { ?g rdf:type ontology:Q15617994 } } } } . FILTER ( ?d > ?m ) }
Saunier
action greater
action union
action find_tuple_counts
relation named after
type name
type human settlement
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Saunier
relation named after
type human settlement
type designation for an administrative territorial entity
[{'concept': 'name'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?o WHERE { { ?o rdf:type ontology:name . ?c rdf:type ontology:human_settlement . ?o property:named_after ?c } UNION { ?o property:named_after ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:name } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { resource:Saunier property:named_after ?g . { { ?g rdf:type ontology:human_settlement } UNION { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?d > ?m ) }
[]
human settlement designation for an administrative territorial entity name
Q27022433 Q24229341
SYSTEM
Danziger, Toscano
Q27022433 Q24229341
(c(Q82799),P138,c(Q486972)|c(Q15617994))
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q486972
action find_tuple_counts
relation P138
type Q82799
type Q15617994
action count
action filter_multi_types
action find
entity Q24699545
relation P138
type Q486972
type Q15617994
[ANSWERS]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?o WHERE { { ?o rdf:type ontology:Q82799 . ?c rdf:type ontology:Q486972 . ?o property:P138 ?c } UNION { ?o property:P138 ?c . ?c rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q82799 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { resource:Q24699545 property:P138 ?g . { { ?g rdf:type ontology:Q486972 } UNION { ?g rdf:type ontology:Q15617994 } } } } . FILTER ( ?d > ?m ) }
Danziger Toscano
Danziger Toscano
action greater
action union
action find_tuple_counts
relation named after
type name
type human settlement
action find_tuple_counts
relation named after
type name
type designation for an administrative territorial entity
action count
action filter_multi_types
action find
entity Saunier
relation named after
type human settlement
type designation for an administrative territorial entity
[{'concept': 'name'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) ?o WHERE { { ?o rdf:type ontology:name . ?c rdf:type ontology:human_settlement . ?o property:named_after ?c } UNION { ?o property:named_after ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:name } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?m ) WHERE { resource:Saunier property:named_after ?g . { { ?g rdf:type ontology:human_settlement } UNION { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?d > ?m ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P407
Q34770 Q82799
USER
Which languages are min number of names in ?
(c(Q82799),P407,Q447117)
action argmin
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
[{'concept': 'Q82799'}, 'P407', 'Q447117']
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?g ) { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?m ) WHERE { ?p property:P407 ?u . ?u rdf:type ontology:Q34770 . ?p rdf:type ontology:Q82799 } GROUP BY ?u } } . FILTER ( ?o = ?g ) . { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:P407 ?v . ?v rdf:type ontology:Q34770 . ?n rdf:type ontology:Q82799 } GROUP BY ?v } }
action argmin
action find_reverse_tuple_counts
relation language of work or name
type language
type name
[{'concept': 'name'}, 'language of work or name', 'Old Egyptian']
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?g ) { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?m ) WHERE { ?p property:language_of_work_or_name ?u . ?u rdf:type ontology:language . ?p rdf:type ontology:name } GROUP BY ?u } } . FILTER ( ?o = ?g ) . { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:language_of_work_or_name ?v . ?v rdf:type ontology:language . ?n rdf:type ontology:name } GROUP BY ?v } }
[]
language name
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q35726 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q37041 Q25167 Q25164 Q36790 Q447117
(c(Q82799),P407,Q447117)
action argmin
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
[ANSWERS]
[{'concept': 'Q82799'}, 'P407', 'Q447117']
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?g ) { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?m ) WHERE { ?p property:P407 ?u . ?u rdf:type ontology:Q34770 . ?p rdf:type ontology:Q82799 } GROUP BY ?u } } . FILTER ( ?o = ?g ) . { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:P407 ?v . ?v rdf:type ontology:Q34770 . ?n rdf:type ontology:Q82799 } GROUP BY ?v } }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Etruscan Old Icelandic Galatian Høgnorsk Lak Sardinian language Pangasinan language Old East Norse classical Chinese Bokmål Nynorsk Sumerian Old Egyptian
Which languages are min number of names in
Old Egyptian Old Church Slavonic Etruscan
action argmin
action find_reverse_tuple_counts
relation language of work or name
type language
type name
[{'concept': 'name'}, 'language of work or name', 'Old Egyptian']
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?g ) { SELECT DISTINCT ?u ( COUNT ( ?p ) AS ?m ) WHERE { ?p property:language_of_work_or_name ?u . ?u rdf:type ontology:language . ?p rdf:type ontology:name } GROUP BY ?u } } . FILTER ( ?o = ?g ) . { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?o ) WHERE { ?n property:language_of_work_or_name ?v . ?v rdf:type ontology:language . ?n rdf:type ontology:name } GROUP BY ?v } }
[]