Question: What country has the smallest size army and shares borders and seas with Ukraine?
Answer(s):
answer: Moldova

SPARQL query:
#MANUAL SPARQL
PREFIX ns: <http://rdf.freebase.com/ns/>
SELECT DISTINCT ?x
WHERE {
FILTER (?x != ns:m.07t21)
FILTER (!isLiteral(?x) OR (lang(?x) = '' OR lang(?x) = 'en'))
ns:m.07t21 ns:location.location.adjoin_s ?y .
?y ns:location.adjoining_relationship.adjoins ?x .
{ {?x ns:common.topic.notable_types ns:m.01mp .} UNION {?x ns:common.topic.notable_types ns:m.01y2jks .} }
?x ns:location.statistical_region.size_of_armed_forces ?c .
?c ns:measurement_unit.dated_integer.number ?num .
}
ORDER BY xsd:integer(?num) LIMIT 1