Simple Question (Direct)
Simple Question
Q1257058
P106
Q12737077
USER
What are the job of Elias Hurwicz ?
(Q1257058,P106,c(Q12737077))
action filter_type
action find
entity Q1257058
relation P106
type Q12737077
['Q1257058', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1257058 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Elias Hurwicz
action filter_type
action find
entity Elias Hurwicz
relation occupation
type occupation
['Elias Hurwicz', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Elias_Hurwicz property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q16287483 Q333634 Q2306091
SYSTEM
opinion journalist, translator, sociologist
Q16287483 Q333634 Q2306091
(Q1257058,P106,c(Q12737077))
action filter_type
action find
entity Q1257058
relation P106
type Q12737077
The job of Elias Hurwicz are an [ANSWERS]
['Q1257058', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q1257058 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
opinion journalist translator sociologist
The job of Elias Hurwicz are an opinion journalist, translator and sociologist
opinion journalist translator sociologist
action filter_type
action find
entity Elias Hurwicz
relation occupation
type occupation
['Elias Hurwicz', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Elias_Hurwicz property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16287483
P425
Q483394
USER
Which genre is associated with the field of occupation that one ?
(Q16287483,P425,c(Q483394))
action filter_type
action find
entity Q16287483
relation P425
type Q483394
['Q16287483', 'P425', {'concept': 'Q483394'}]
SELECT DISTINCT ?c WHERE { resource:Q16287483 property:P425 ?c . ?c rdf:type ontology:Q483394 }
opinion journalist
action filter_type
action find
entity opinion journalist
relation field of this occupation
type genre
['opinion journalist', 'field of this occupation', {'concept': 'genre'}]
SELECT DISTINCT ?c WHERE { resource:opinion_journalist property:field_of_this_occupation ?c . ?c rdf:type ontology:genre }
[]
genre
Clarification for simple ques.
Q2306091
SYSTEM
Did you mean sociologist ?
Q16287483 Q333634 Q2306091
(Q16287483,P425,c(Q483394)) (Q333634,P425,c(Q483394)) (Q2306091,P425,c(Q483394))
[ANSWER]
['Q16287483', 'P425', {'concept': 'Q483394'}] ['Q333634', 'P425', {'concept': 'Q483394'}] ['Q2306091', 'P425', {'concept': 'Q483394'}]
SELECT DISTINCT ?c WHERE { resource:Q16287483 property:P425 ?c . ?c rdf:type ontology:Q483394 }
opinion journalist translator sociologist
Did you mean sociologist ?
sociologist
['opinion journalist', 'field of this occupation', {'concept': 'genre'}] ['translator', 'field of this occupation', {'concept': 'genre'}] ['sociologist', 'field of this occupation', {'concept': 'genre'}]
SELECT DISTINCT ?c WHERE { resource:opinion_journalist property:field_of_this_occupation ?c . ?c rdf:type ontology:genre }
[]
Simple Question (Coreferenced)
USER
No, I meant opinion journalist. Could you tell me the answer for that?
(Q16287483,P425,c(Q483394))
Q16287483
['Q16287483', 'P425', {'concept': 'Q483394'}]
['opinion journalist', 'field of this occupation', {'concept': 'genre'}]
[]
Q156035
SYSTEM
opinion journalism
Q156035
(Q16287483,P425,c(Q483394))
action filter_type
action find
entity Q16287483
relation P425
type Q483394
The [ANSWER] is associated with the field of occupation that one
['Q16287483', 'P425', {'concept': 'Q483394'}]
SELECT DISTINCT ?c WHERE { resource:Q16287483 property:P425 ?c . ?c rdf:type ontology:Q483394 }
opinion journalism
The opinion journalism is associated with the field of occupation that one
opinion journalism
action filter_type
action find
entity opinion journalist
relation field of this occupation
type genre
['opinion journalist', 'field of this occupation', {'concept': 'genre'}]
SELECT DISTINCT ?c WHERE { resource:opinion_journalist property:field_of_this_occupation ?c . ?c rdf:type ontology:genre }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P136
Q502895 Q2342494
USER
How many people or collectables as that genre as their class ?
(c(Q502895),P136,Q156035) (c(Q2342494),P136,Q156035) (c(Q502895),P136,Q156035) (c(Q2342494),P136,Q156035)
action count
action union
action filter_type
action find_reverse
entity Q156035
relation P136
type Q502895
action filter_type
action find_reverse
entity Q156035
relation P136
type Q2342494
[{'concept': 'Q502895'}, 'P136', 'Q156035'] [{'concept': 'Q2342494'}, 'P136', 'Q156035'] [{'concept': 'Q502895'}, 'P136', 'Q156035'] [{'concept': 'Q2342494'}, 'P136', 'Q156035']
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { VALUES ( ?j ) { ( ontology:Q502895 ) ( ontology:Q2342494 ) } . ?v rdf:type ?j }
action count
action union
action filter_type
action find_reverse
entity opinion journalism
relation genre
type common name
action filter_type
action find_reverse
entity opinion journalism
relation genre
type collectable
[{'concept': 'common name'}, 'genre', 'opinion journalism'] [{'concept': 'collectable'}, 'genre', 'opinion journalism'] [{'concept': 'common name'}, 'genre', 'opinion journalism'] [{'concept': 'collectable'}, 'genre', 'opinion journalism']
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { VALUES ( ?j ) { ( ontology:common_name ) ( ontology:collectable ) } . ?v rdf:type ?j }
[]
common name collectable
SYSTEM
15
Q4299587 Q4087328 Q4388317 Q24596 Q1198947 Q932306 Q4382392 Q1339541 Q4423915 Q946877 Q2631183 Q1658996 Q17157078 Q4163075 Q4129040
(c(Q502895),P136,Q156035) (c(Q2342494),P136,Q156035) (c(Q502895),P136,Q156035) (c(Q2342494),P136,Q156035)
action count
action union
action filter_type
action find_reverse
entity Q156035
relation P136
type Q502895
action filter_type
action find_reverse
entity Q156035
relation P136
type Q2342494
[ANSWER]
[{'concept': 'Q502895'}, 'P136', 'Q156035'] [{'concept': 'Q2342494'}, 'P136', 'Q156035'] [{'concept': 'Q502895'}, 'P136', 'Q156035'] [{'concept': 'Q2342494'}, 'P136', 'Q156035']
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { VALUES ( ?j ) { ( ontology:Q502895 ) ( ontology:Q2342494 ) } . ?v rdf:type ?j }
Mozg Armii The Battle for Skies Conversation with a Barbarian: Interviews with a Chechen Field Commander on Banditry and Islam God Is Not Great The International Jew The Men Who Stare at Goats Parting With Illusions Bury My Heart at Wounded Knee The Broken Sword of the Empire What Is to Be Done? Capitalism and Freedom Zaveshchanie russkogo fashista Petr Zavadil The Diary of Polina Zherebtsova The Hoax of the Twentieth Century
15
action count
action union
action filter_type
action find_reverse
entity opinion journalism
relation genre
type common name
action filter_type
action find_reverse
entity opinion journalism
relation genre
type collectable
[{'concept': 'common name'}, 'genre', 'opinion journalism'] [{'concept': 'collectable'}, 'genre', 'opinion journalism'] [{'concept': 'common name'}, 'genre', 'opinion journalism'] [{'concept': 'collectable'}, 'genre', 'opinion journalism']
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { VALUES ( ?j ) { ( ontology:common_name ) ( ontology:collectable ) } . ?v rdf:type ?j }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P135
Q483394 Q3305213
USER
How many paintings are linked with exactly 1 genre ?
(c(Q3305213),P135,c(Q483394))
action count
action equal
action find_tuple_counts
relation P135
type Q3305213
type Q483394
value 1
[{'concept': 'Q3305213'}, 'P135', {'concept': 'Q483394'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?h ) WHERE { ?k property:P135 ?n . ?k rdf:type ontology:Q3305213 . ?n rdf:type ontology:Q483394 } GROUP BY ?k } . FILTER ( ?h = 1 ) }
action count
action equal
action find_tuple_counts
relation movement
type painting
type genre
value 1
[{'concept': 'painting'}, 'movement', {'concept': 'genre'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?h ) WHERE { ?k property:movement ?n . ?k rdf:type ontology:painting . ?n rdf:type ontology:genre } GROUP BY ?k } . FILTER ( ?h = 1 ) }
[]
genre painting
SYSTEM
2
Q15150145 Q17627562
(c(Q3305213),P135,c(Q483394))
action count
action equal
action find_tuple_counts
relation P135
type Q3305213
type Q483394
value 1
[ANSWER]
[{'concept': 'Q3305213'}, 'P135', {'concept': 'Q483394'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?h ) WHERE { ?k property:P135 ?n . ?k rdf:type ontology:Q3305213 . ?n rdf:type ontology:Q483394 } GROUP BY ?k } . FILTER ( ?h = 1 ) }
Aux gloires du Lyonnais et du Beaujolais Woman's head with ram horns
2
action count
action equal
action find_tuple_counts
relation movement
type painting
type genre
value 1
[{'concept': 'painting'}, 'movement', {'concept': 'genre'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?n ) AS ?h ) WHERE { ?k property:movement ?n . ?k rdf:type ontology:painting . ?n rdf:type ontology:genre } GROUP BY ?k } . FILTER ( ?h = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q85192 Q1257058
P27
Q1048835
USER
Which political territories are the countries of citizenship of Elias Hurwicz or Haris Bukva ?
OR((Q1257058,P27,c(Q1048835)), (Q85192,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1257058
relation P27
action find
entity Q85192
relation P27
type Q1048835
{'OR': [['Q1257058', 'P27', {'concept': 'Q1048835'}], ['Q85192', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q85192 property:P27 ?p } UNION { resource:Q1257058 property:P27 ?p } } . ?p rdf:type ontology:Q1048835 }
Haris Bukva Elias Hurwicz
action filter_type
action union
action find
entity Elias Hurwicz
relation country of citizenship
action find
entity Haris Bukva
relation country of citizenship
type political territorial entity
{'OR': [['Elias Hurwicz', 'country of citizenship', {'concept': 'political territorial entity'}], ['Haris Bukva', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Haris_Bukva property:country_of_citizenship ?p } UNION { resource:Elias_Hurwicz property:country_of_citizenship ?p } } . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q40
SYSTEM
Germany, Austria
Q183 Q40
OR((Q1257058,P27,c(Q1048835)), (Q85192,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1257058
relation P27
action find
entity Q85192
relation P27
type Q1048835
[ANSWERS] are the countries of citizenship of Elias Hurwicz or Haris Bukva
{'OR': [['Q1257058', 'P27', {'concept': 'Q1048835'}], ['Q85192', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q85192 property:P27 ?p } UNION { resource:Q1257058 property:P27 ?p } } . ?p rdf:type ontology:Q1048835 }
Germany Austria
Germany and Austria are the countries of citizenship of Elias Hurwicz or Haris Bukva
Germany Austria
action filter_type
action union
action find
entity Elias Hurwicz
relation country of citizenship
action find
entity Haris Bukva
relation country of citizenship
type political territorial entity
{'OR': [['Elias Hurwicz', 'country of citizenship', {'concept': 'political territorial entity'}], ['Haris Bukva', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Haris_Bukva property:country_of_citizenship ?p } UNION { resource:Elias_Hurwicz property:country_of_citizenship ?p } } . ?p rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q408
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with lesser number of political territories than Australia ?
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q408
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { ?z rdf:type ontology:Q1048835 . resource:Q408 property:P530 ?z } } . FILTER ( ?y < ?v ) . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?y ) WHERE { ?a property:P530 ?u . ?a rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q1048835 } GROUP BY ?a } }
Australia
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { ?z rdf:type ontology:political_territorial_entity . resource:Australia property:diplomatic_relation ?z } } . FILTER ( ?y < ?v ) . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?y ) WHERE { ?a property:diplomatic_relation ?u . ?a rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?a } }
[]
political territorial entity political territorial entity
Q183 Q35 Q16
SYSTEM
Germany, Denmark, Canada
Q1000 Q40 Q781 Q778 Q183 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q408
relation P530
type Q1048835
[ANSWERS] have diplomatic relations with lesser number of political territories than Australia
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { ?z rdf:type ontology:Q1048835 . resource:Q408 property:P530 ?z } } . FILTER ( ?y < ?v ) . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?y ) WHERE { ?a property:P530 ?u . ?a rdf:type ontology:Q1048835 . ?u rdf:type ontology:Q1048835 } GROUP BY ?a } }
Gabon Austria Antigua and Barbuda The Bahamas Germany Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Germany, Denmark and Canada have diplomatic relations with lesser number of political territories than Australia
Germany Denmark Canada
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Australia
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?v ) WHERE { ?z rdf:type ontology:political_territorial_entity . resource:Australia property:diplomatic_relation ?z } } . FILTER ( ?y < ?v ) . { SELECT DISTINCT ?a ( COUNT ( ?u ) AS ?y ) WHERE { ?a property:diplomatic_relation ?u . ?a rdf:type ontology:political_territorial_entity . ?u rdf:type ontology:political_territorial_entity } GROUP BY ?a } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q35
P530
Q1048835 Q1048835
USER
And what about Denmark?
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?f ) WHERE { ?o property:P530 ?m . ?o rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q1048835 } GROUP BY ?o } . FILTER ( ?f < ?p ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { resource:Q35 property:P530 ?j . ?j rdf:type ontology:Q1048835 } } }
Denmark
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?f ) WHERE { ?o property:diplomatic_relation ?m . ?o rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:political_territorial_entity } GROUP BY ?o } . FILTER ( ?f < ?p ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { resource:Denmark property:diplomatic_relation ?j . ?j rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity political territorial entity
Q40 Q1000 Q769
SYSTEM
Austria, Gabon, Grenada
Q1000 Q40 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q35
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?f ) WHERE { ?o property:P530 ?m . ?o rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q1048835 } GROUP BY ?o } . FILTER ( ?f < ?p ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { resource:Q35 property:P530 ?j . ?j rdf:type ontology:Q1048835 } } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Austria Gabon Grenada
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Denmark
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?m ) AS ?f ) WHERE { ?o property:diplomatic_relation ?m . ?o rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:political_territorial_entity } GROUP BY ?o } . FILTER ( ?f < ?p ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?p ) WHERE { resource:Denmark property:diplomatic_relation ?j . ?j rdf:type ontology:political_territorial_entity } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q801607 Q408
P17
Q1048835
USER
Which political territories are Australia or Wien Liesing railway station located in ?
OR((Q408,P17,c(Q1048835)), (Q801607,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q408
relation P17
action find
entity Q801607
relation P17
type Q1048835
{'OR': [['Q408', 'P17', {'concept': 'Q1048835'}], ['Q801607', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q408 property:P17 ?p } UNION { resource:Q801607 property:P17 ?p } } . ?p rdf:type ontology:Q1048835 }
Wien Liesing railway station Australia
action filter_type
action union
action find
entity Australia
relation country
action find
entity Wien Liesing railway station
relation country
type political territorial entity
{'OR': [['Australia', 'country', {'concept': 'political territorial entity'}], ['Wien Liesing railway station', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Australia property:country ?p } UNION { resource:Wien_Liesing_railway_station property:country ?p } } . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q40
SYSTEM
Australia, Austria
Q408 Q40
OR((Q408,P17,c(Q1048835)), (Q801607,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q408
relation P17
action find
entity Q801607
relation P17
type Q1048835
Australia or Wien Liesing railway station are located in [ANSWERS]
{'OR': [['Q408', 'P17', {'concept': 'Q1048835'}], ['Q801607', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q408 property:P17 ?p } UNION { resource:Q801607 property:P17 ?p } } . ?p rdf:type ontology:Q1048835 }
Australia Austria
Australia or Wien Liesing railway station are located in Australia and Austria
Australia Austria
action filter_type
action union
action find
entity Australia
relation country
action find
entity Wien Liesing railway station
relation country
type political territorial entity
{'OR': [['Australia', 'country', {'concept': 'political territorial entity'}], ['Wien Liesing railway station', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Australia property:country ?p } UNION { resource:Wien_Liesing_railway_station property:country ?p } } . ?p rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q473250
P190
Q20667921 Q486972 Q1048835
USER
Which political territories are twin city of more number of french administrative divisions and human settlements than Macaé ?
(c(Q1048835),P190,c(Q20667921)|c(Q486972))
action greater
action union
action find_tuple_counts
relation P190
type Q1048835
type Q20667921
action find_tuple_counts
relation P190
type Q1048835
type Q486972
action count
action filter_multi_types
action find
entity Q473250
relation P190
type Q20667921
type Q486972
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q20667921'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?i ) WHERE { ?y rdf:type ?o . VALUES ( ?o ) { ( ontology:Q20667921 ) ( ontology:Q486972 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { ?u rdf:type ?p . VALUES ( ?p ) { ( ontology:Q486972 ) ( ontology:Q20667921 ) } } . resource:Q473250 property:P190 ?u } } . FILTER ( ?i > ?h ) }
Macaé
action greater
action union
action find_tuple_counts
relation sister city
type political territorial entity
type type of french administrative division
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
action count
action filter_multi_types
action find
entity Macaé
relation sister city
type type of french administrative division
type human settlement
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'type of french administrative division'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?i ) WHERE { ?y rdf:type ?o . VALUES ( ?o ) { ( ontology:type_of_french_administrative_division ) ( ontology:human_settlement ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { ?u rdf:type ?p . VALUES ( ?p ) { ( ontology:human_settlement ) ( ontology:type_of_french_administrative_division ) } } . resource:Macaé property:sister_city ?u } } . FILTER ( ?i > ?h ) }
[]
type of french administrative division human settlement political territorial entity
Q436491 Q5826 Q761735
SYSTEM
Altea, Xi'an, Montblanc
Q5963 Q36947 Q15473 Q13010 Q147774 Q910410 Q1312844 Q476793 Q919050 Q12590 Q1649476 Q644891 Q15470 Q1312654 Q168376 Q13150 Q496588 Q496424 Q815631 Q12339 Q277302 Q1021521 Q642083 Q1750915 Q752137 Q12647 Q11746 Q1161455 Q211889 Q820229 Q840362 Q427330 Q596761 Q1616611 Q12110 Q49581 Q13521 Q1606055 Q787022 Q844784 Q5123 Q4970 Q1769167 Q193780 Q64010 Q140203 Q485129 Q1614754 Q375925 Q956558 Q12690 Q741765 Q737161 Q1410782 Q583280 Q695889 Q15174 Q1730870 Q12587 Q592747 Q750968 Q12022 Q500494 Q10436 Q1771128 Q428954 Q748078 Q798747 Q8184 Q1651638 Q188905 Q735759 Q15551 Q15553 Q973325 Q15558 Q937763 Q898563 Q371748 Q693913 Q641221 Q12812 Q170322 Q42956 Q55480 Q12101 Q761735 Q281272 Q216802 Q436491 Q497801 Q1601699 Q221749 Q1917834 Q572800 Q639422 Q47475 Q11492 Q642046 Q1024828 Q845424 Q487096 Q491667 Q623685 Q748867 Q15639 Q427505 Q13490 Q836948 Q615722 Q995637 Q465085 Q918586 Q943431 Q1751908 Q502975 Q1998520 Q477311 Q15652 Q984529 Q695456 Q755695 Q92161 Q851020 Q1312465 Q825883 Q697126 Q11720 Q1272870 Q1651692 Q501674 Q741749 Q1628531 Q353618 Q42780 Q10445 Q919046 Q497692 Q984821 Q837051 Q13930 Q15597 Q1637309 Q1368982 Q13149 Q13614 Q6839 Q749696 Q74881 Q15626 Q5826 Q1657213 Q1607392 Q904212 Q203040 Q12335 Q13022 Q1768489 Q47593 Q215822
(c(Q1048835),P190,c(Q20667921)|c(Q486972))
action greater
action union
action find_tuple_counts
relation P190
type Q1048835
type Q20667921
action find_tuple_counts
relation P190
type Q1048835
type Q486972
action count
action filter_multi_types
action find
entity Q473250
relation P190
type Q20667921
type Q486972
[ANSWERS] are twin city of more number of french administrative divisions and human settlements than Macaé
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q20667921'}, {'concept': 'Q486972'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?i ) WHERE { ?y rdf:type ?o . VALUES ( ?o ) { ( ontology:Q20667921 ) ( ontology:Q486972 ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { ?u rdf:type ?p . VALUES ( ?p ) { ( ontology:Q486972 ) ( ontology:Q20667921 ) } } . resource:Q473250 property:P190 ?u } } . FILTER ( ?i > ?h ) }
Hanover region Salvador Santa Coloma de Gramenet Arbúcies Zarautz Tres Cantos Alberic Arévalo Molina de Aragón Malgrat de Mar Algemesí Ruente L'Hospitalet de Llobregat Carlet Vitória Torrox Oñati Calatayud Belinho Sant Joan de les Abadesses Chiclana de la Frontera São João de Loure Arnedo Callosa de Segura Tàrrega Vielha e Mijaran Wuhan Macael East Dunbartonshire Tomelloso Mondoñedo Salobreña Malpica de Bergantiños Crevillent Arenys de Mar Jaca Sant Feliu de Guíxols Caudete Autol Vale of Glamorgan Monzón Hangzhou Cigales Almuñécar Caspe Zafra Burgo de Osma-Ciudad de Osma Medina de Pomar Vila Nova de Cerveira Sádaba Sort San Fernando Calanda Iznalloz Uncastillo Alfaro, La Rioja Shenzhen Oliveira do Douro, Vila Nova de Gaia Santa Susanna Las Rozas de Madrid Segorbe Montgat Padrón Kulmbach Carcaixent Los Palacios y Villafranca Neath Port Talbot County Borough Mondorf-les-Bains Enz Cella Ouro Preto Collado Villalba Sitges Vilanova i la Geltrú Villanueva de la Cañada Cubelles Graus Valdepeñas San Lorenzo de El Escorial Medina del Campo Viveiro Tortosa Qingdao Harbin Colmenar Viejo Arenys de Munt Montblanc Linares Falkirk Altea Tolosa Villamanrique de la Condesa Torrevieja Albaida Alcañiz Pozuelo de Alarcón Sigüenza Mataró Calahorra Luso Peniscola Reus San Vicente del Raspeig / Sant Vicent del Raspeig Ólvega Baiona Sant Feliu de Llobregat Majadahonda Palafrugell Toro Santa Fe Torredembarra Almadén Oliva Granadilla de Abona San Martín de Valdeiglesias Barbastro L'Eliana Amposta Viladecans Cariñena Bailén Fuenmayor Changchun Xàbia Benifairó de la Valldigna Valls Bridgend County Borough Shenyang Santiago de Figueiró Tudela de Duero Alhama de Granada Chipiona Quintanar de la Orden Adeje Ningbo Forchheim Consuegra Arganda del Rey Onda Mequinenza Almansa Castelldefels Ezcaray Azuaga Nerja Banyoles Figueres Albalat de la Ribera Dalian Olesa de Montserrat Xi'an Venta de Baños Madridejos Fraga El Puerto de Santa María Ripoll Amer Utrillas Belém Puertollano
Altea, Xi'an and Montblanc are twin city of more number of french administrative divisions and human settlements than Macaé
Altea Xi'an Montblanc
action greater
action union
action find_tuple_counts
relation sister city
type political territorial entity
type type of french administrative division
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
action count
action filter_multi_types
action find
entity Macaé
relation sister city
type type of french administrative division
type human settlement
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'type of french administrative division'}, {'concept': 'human settlement'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?y ) AS ?i ) WHERE { ?y rdf:type ?o . VALUES ( ?o ) { ( ontology:type_of_french_administrative_division ) ( ontology:human_settlement ) } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { { ?u rdf:type ?p . VALUES ( ?p ) { ( ontology:human_settlement ) ( ontology:type_of_french_administrative_division ) } } . resource:Macaé property:sister_city ?u } } . FILTER ( ?i > ?h ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q436491
P20
Q502895
USER
Which people have that political territory as the location of death ?
(c(Q502895),P20,Q436491)
action filter_type
action find_reverse
entity Q436491
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q436491']
SELECT DISTINCT ?y WHERE { ?y property:P20 resource:Q436491 . ?y rdf:type ontology:Q502895 }
Altea
action filter_type
action find_reverse
entity Altea
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Altea']
SELECT DISTINCT ?y WHERE { ?y property:place_of_death resource:Altea . ?y rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q5826
SYSTEM
Did you mean Xi'an ?
Q436491 Q5826 Q761735
(c(Q502895),P20,Q436491) (c(Q502895),P20,Q5826) (c(Q502895),P20,Q761735)
[ANSWER]
[{'concept': 'Q502895'}, 'P20', 'Q436491'] [{'concept': 'Q502895'}, 'P20', 'Q5826'] [{'concept': 'Q502895'}, 'P20', 'Q761735']
SELECT DISTINCT ?y WHERE { ?y property:P20 resource:Q436491 . ?y rdf:type ontology:Q502895 }
Altea Xi'an Montblanc
Did you mean Xi'an ?
Xi'an
[{'concept': 'common name'}, 'place of death', 'Altea'] [{'concept': 'common name'}, 'place of death', "Xi'an"] [{'concept': 'common name'}, 'place of death', 'Montblanc']
SELECT DISTINCT ?y WHERE { ?y property:place_of_death resource:Altea . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Altea. Could you tell me the answer for that?
(c(Q502895),P20,Q436491)
Q436491
[{'concept': 'Q502895'}, 'P20', 'Q436491']
[{'concept': 'common name'}, 'place of death', 'Altea']
[]
Q896930 Q522256
SYSTEM
Eberhard Schlotter, Sidney Hayers
Q896930 Q522256
(c(Q502895),P20,Q436491)
action filter_type
action find_reverse
entity Q436491
relation P20
type Q502895
[ANSWERS] have that political territory as the location of death
[{'concept': 'Q502895'}, 'P20', 'Q436491']
SELECT DISTINCT ?y WHERE { ?y property:P20 resource:Q436491 . ?y rdf:type ontology:Q502895 }
Eberhard Schlotter Sidney Hayers
Eberhard Schlotter and Sidney Hayers have that political territory as the location of death
Eberhard Schlotter Sidney Hayers
action filter_type
action find_reverse
entity Altea
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Altea']
SELECT DISTINCT ?y WHERE { ?y property:place_of_death resource:Altea . ?y rdf:type ontology:common_name }
[]